MediaWiki
REL1_19
|
00001 <?php 00002 00031 require_once ( dirname( __FILE__ ) . '/MediaWikiInstallationCommonFunction.php' ); 00032 00039 class MediaWikiDifferentDatabaseAccountTestCase extends MediaWikiInstallationCommonFunction { 00040 00041 function setUp() { 00042 parent::setUp(); 00043 } 00044 00045 00046 // Install Mediawiki using 'MySQL' database type. 00047 public function testDifferentDatabaseAccount() { 00048 00049 $databaseName = DB_NAME_PREFIX."_dif_accounts"; 00050 00051 // Navigate to the 'Database settings' page 00052 parent::navigateDatabaseSettingsPage( $databaseName ); 00053 00054 // Click on the 'Use the same account as for installation' check box 00055 $this->click( "mysql__SameAccount" ); 00056 00057 // Change the 'Database username' 00058 $this->type( "mysql_wgDBuser", DB_WEB_USER ); 00059 00060 // Enter 'Database password:' 00061 $this->type( "mysql_wgDBpassword", DB_WEB_USER_PASSWORD ); 00062 00063 // Select 'Create the account if it does not already exist' check box 00064 $this->click( "mysql__CreateDBAccount" ); 00065 parent::clickContinueButton(); 00066 00067 // 'Name' page 00068 parent::completeNamePage(); 00069 00070 // 'Options' page 00071 parent::clickContinueButton(); 00072 00073 // 'Install' page 00074 $this->assertEquals("Creating database user... done", 00075 $this->getText( LINK_FORM."ul/li[3]")); 00076 parent::clickContinueButton(); 00077 00078 // 'Complete' page 00079 parent::completePageSuccessfull(); 00080 $this->chooseCancelOnNextConfirmation(); 00081 } 00082 }