MediaWiki  REL1_19
MediaWikiButtonsAvailabilityTestCase.php
Go to the documentation of this file.
00001 <?php
00002 
00031 require_once (dirname(__FILE__).'/'.'MediaWikiInstallationCommonFunction.php');
00032 
00040 class MediaWikiButtonsAvailabilityTestCase extends MediaWikiInstallationCommonFunction {
00041 
00042     function setUp() {
00043         parent::setUp();
00044     }
00045 
00046 
00047     // Verify only 'Continue' button available on 'Language' page
00048     public function testOnlyContinueButtonAvailability() {
00049 
00050         parent::navigateLanguagePage();
00051 
00052         // Verify only 'Continue' button avaialble
00053         $this->assertTrue( $this->isElementPresent( "submit-continue" ));
00054 
00055         // 'Back' button is not avaialble
00056         $this->assertElementNotPresent( "submit-back" );
00057     }
00058 
00059 
00060     // Verify 'Continue' and 'Back' buttons availability
00061     public function testBothButtonsAvailability() {
00062 
00063         // Verify buttons availability on 'Welcome to MediaWiki' page
00064         parent::navigateWelcometoMediaWikiPage();
00065         $this->assertTrue( $this->isElementPresent( "submit-back" ));
00066         $this->assertTrue( $this->isElementPresent( "submit-continue" ));
00067         parent::restartInstallation();
00068 
00069         // Verify buttons availability on 'Connect to Database' page
00070         parent::navigateConnetToDatabasePage();
00071         $this->assertTrue( $this->isElementPresent( "submit-back" ));
00072         $this->assertTrue( $this->isElementPresent( "submit-continue" ));
00073         parent::restartInstallation();
00074 
00075         // Verify buttons availability on 'Database settings' page
00076         $databaseName = DB_NAME_PREFIX."_db_settings";
00077         parent::navigateDatabaseSettingsPage( $databaseName );
00078         $this->assertTrue( $this->isElementPresent( "submit-back" ));
00079         $this->assertTrue( $this->isElementPresent( "submit-continue" ));
00080         parent::restartInstallation();
00081 
00082         // Verify buttons availability on 'Name' page
00083         $databaseName = DB_NAME_PREFIX."_name";
00084         parent::navigateNamePage( $databaseName );
00085         $this->assertTrue( $this->isElementPresent( "submit-back" ));
00086         $this->assertTrue( $this->isElementPresent( "submit-continue" ));
00087         parent::restartInstallation();
00088 
00089         // Verify buttons availability on 'Options' page
00090         $databaseName = DB_NAME_PREFIX."_options";
00091         parent::navigateOptionsPage( $databaseName );
00092         $this->assertTrue( $this->isElementPresent( "submit-back" ));
00093         $this->assertTrue( $this->isElementPresent( "submit-continue" ));
00094         parent::restartInstallation();
00095 
00096         // Verify buttons availability on 'Install' page
00097         $databaseName = DB_NAME_PREFIX."_install";
00098         parent::navigateInstallPage($databaseName);
00099         $this->assertTrue( $this->isElementPresent( "submit-back" ));
00100         $this->assertTrue( $this->isElementPresent( "submit-continue" ));
00101     }
00102 }