MediaWiki
REL1_21
|
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', __DIR__ . 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 /* 00057 $this->open( $this->getUrl() . '/index.php?title=Image:' 00058 . ucfirst( $this->filename ) . '&action=delete' ); 00059 $this->type( 'wpReason', 'Remove test file' ); 00060 $this->click( 'mw-filedelete-submit' ); 00061 $this->waitForPageToLoad( 10000 ); 00062 00063 // Todo: This message is localized 00064 $this->assertSeleniumHTMLContains( '//div[@id="bodyContent"]/p', 00065 ucfirst( $this->filename ) . '.*has been deleted.' ); 00066 */ 00067 } 00068 00069 00070 }