MediaWiki
REL1_21
|
00001 <?php 00027 require_once ( __DIR__ . '/MediaWikiInstallationCommonFunction.php' ); 00028 00029 00036 class MediaWikiOnAlreadyInstalledTestCase extends MediaWikiInstallationCommonFunction { 00037 function setUp() { 00038 parent::setUp(); 00039 } 00040 00041 // Install Mediawiki using 'MySQL' database type. 00042 public function testInstallOnAlreadyInstalled() { 00043 $databaseName = DB_NAME_PREFIX . "_already_installed"; 00044 parent::navigateInstallPage( $databaseName ); 00045 00046 // 'Options' page 00047 parent::clickBackButton(); 00048 00049 // Install page 00050 parent::clickContinueButton(); 00051 00052 // 'Install' page should display after the 'Option' page 00053 $this->assertEquals( "Install", $this->getText( LINK_DIV . "h2" ) ); 00054 00055 // Verify warning text displayed 00056 $this->assertEquals( "Warning: You seem to have already installed MediaWiki and are trying to install it again. Please proceed to the next page.", 00057 $this->getText( LINK_FORM . "div[1]/div[2]" ) ); 00058 00059 // Complete page 00060 parent::clickContinueButton(); 00061 parent::completePageSuccessfull(); 00062 $this->chooseCancelOnNextConfirmation(); 00063 parent::restartInstallation(); 00064 } 00065 }