MediaWiki  REL1_19
MediawikiCoreSmokeTestCase.php
Go to the documentation of this file.
00001 <?php
00002 /*
00003  * Stub of tests be need as part of the hack-a-ton
00004  */
00005 class MediawikiCoreSmokeTestCase extends SeleniumTestCase {
00006         public function testUserLogin() {
00007 
00008         }
00009 
00010         public function testChangeUserPreference() {
00011 
00012         }
00013 
00017         public function testCreateNewPageVector() {
00018 
00019         }
00020 
00024         public function testEditExistingPageVector() {
00025 
00026         }
00027 
00031         public function testCreateNewPageMonobook() {
00032 
00033         }
00034 
00038         public function testEditExistingPageMonobook() {
00039 
00040         }
00041 
00042         public function testImageUpload() {
00043                 $this->login();
00044                 $this->open( $this->getUrl() .
00045                         '/index.php?title=Special:Upload' );
00046                 $this->type( 'wpUploadFile', dirname( __FILE__ ) .
00047                         "\\..\\data\\Wikipedia-logo-v2-de.png" );
00048                 $this->check( 'wpIgnoreWarning' );
00049                 $this->click( 'wpUpload' );
00050                 $this->waitForPageToLoad( 30000 );
00051 
00052                 $this->assertSeleniumHTMLContains(
00053                                 '//h1[@class="firstHeading"]', "Wikipedia-logo-v2-de.png" );
00054 
00055                 /*
00056                 $this->open( $this->getUrl() . '/index.php?title=Image:'
00057                         . ucfirst( $this->filename ) . '&action=delete' );
00058                 $this->type( 'wpReason', 'Remove test file' );
00059                 $this->click( 'mw-filedelete-submit' );
00060                 $this->waitForPageToLoad( 10000 );
00061 
00062                 // Todo: This message is localized
00063                 $this->assertSeleniumHTMLContains( '//div[@id="bodyContent"]/p',
00064                         ucfirst( $this->filename ) . '.*has been deleted.' );
00065                  */
00066         }
00067 
00068 
00069 }