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