MediaWiki  REL1_21
MediaWikiMySQLiteDataBaseTestCase.php
Go to the documentation of this file.
00001 <?php
00027 require_once ( __DIR__ . '/MediaWikiInstallationCommonFunction.php' );
00028 
00035 class MediaWikiMySQLiteDataBaseTestCase extends MediaWikiInstallationCommonFunction {
00036         function setUp() {
00037                 parent::setUp();
00038         }
00039 
00040         // Verify  MediaWiki installation using 'MySQL' database type
00041         public function testMySQLDatabaseSuccess() {
00042                 $databaseName = DB_NAME_PREFIX . "_sqlite_db";
00043 
00044                 parent::navigateConnetToDatabasePage();
00045                 $this->click( "DBType_sqlite" );
00046 
00047                 // Select 'SQLite' database type
00048                 $this->assertEquals( "SQLite settings", $this->getText( "//div[@id='DB_wrapper_sqlite']/h3" ) );
00049 
00050                 // Change database name
00051                 $defaultDbName = $this->getText( "sqlite_wgDBname" );
00052                 $this->type( "sqlite_wgDBname", " " );
00053                 $this->type( "sqlite_wgDBname", $databaseName );
00054                 $this->assertNotEquals( $defaultDbName, $databaseName );
00055 
00056                 // 'Database settings' page
00057                 parent::clickContinueButton();
00058 
00059                 // 'Name' page
00060                 parent::clickContinueButton();
00061                 parent::completeNamePage();
00062 
00063                 // 'Options page
00064                 parent::clickContinueButton();
00065 
00066                 // 'Install' page
00067                 parent::clickContinueButton();
00068 
00069                 // 'Complete' page
00070                 parent::completePageSuccessfull();
00071                 parent::restartInstallation();
00072         }
00073 }