MediaWiki
REL1_19
|
00001 <?php 00002 00031 require_once (dirname(__FILE__).'/'.'MediaWikiInstallationCommonFunction.php'); 00032 00039 class MediaWikiMySQLDataBaseTestCase extends MediaWikiInstallationCommonFunction { 00040 00041 function setUp() { 00042 parent::setUp(); 00043 } 00044 00045 // Verify MediaWiki installation using 'MySQL' database type 00046 public function testMySQLDatabaseSuccess() { 00047 00048 $databaseName = DB_NAME_PREFIX."_sql_db"; 00049 00050 parent::navigateConnetToDatabasePage(); 00051 00052 // Verify 'MySQL" is selected as the default database type 00053 $this->assertEquals( "MySQL settings", $this->getText( "//div[@id='DB_wrapper_mysql']/h3" )); 00054 00055 // Change 'Database name' 00056 $defaultDbName = $this->getText( "mysql_wgDBname" ); 00057 $this->type( "mysql_wgDBname", " "); 00058 $this->type( "mysql_wgDBname", $databaseName ); 00059 $this->assertNotEquals( $defaultDbName, $databaseName ); 00060 00061 // 'Database settings' page 00062 parent::clickContinueButton(); 00063 00064 // 'Name' page 00065 parent::clickContinueButton(); 00066 parent::completeNamePage(); 00067 00068 // 'Options page 00069 parent::clickContinueButton(); 00070 00071 // 'Install' page 00072 parent::clickContinueButton(); 00073 00074 // 'Complete' page 00075 parent::completePageSuccessfull(); 00076 parent::restartInstallation(); 00077 } 00078 }