Index: trunk/phase3/maintenance/tests/phpunit/includes/api/ApiWatchTest.php |
— | — | @@ -37,8 +37,8 @@ |
38 | 38 | function testLogin() { |
39 | 39 | $data = $this->doApiRequest( array( |
40 | 40 | 'action' => 'login', |
41 | | - 'lgname' => 'WikiSysop', |
42 | | - 'lgpassword' => 'none' ), $data ); |
| 41 | + 'lgname' => self::$userName, |
| 42 | + 'lgpassword' => self::$passWord ), $data ); |
43 | 43 | |
44 | 44 | $this->assertArrayHasKey( "login", $data[0] ); |
45 | 45 | $this->assertArrayHasKey( "result", $data[0]['login'] ); |
— | — | @@ -48,8 +48,8 @@ |
49 | 49 | $data = $this->doApiRequest( array( |
50 | 50 | 'action' => 'login', |
51 | 51 | "lgtoken" => $token, |
52 | | - "lgname" => 'WikiSysop', |
53 | | - "lgpassword" => 'none' ), $data ); |
| 52 | + "lgname" => self::$userName, |
| 53 | + "lgpassword" => self::$passWord ), $data ); |
54 | 54 | |
55 | 55 | $this->assertArrayHasKey( "login", $data[0] ); |
56 | 56 | $this->assertArrayHasKey( "result", $data[0]['login'] ); |
— | — | @@ -183,7 +183,7 @@ |
184 | 184 | $data = $this->doApiRequest( array( |
185 | 185 | 'action' => 'rollback', |
186 | 186 | 'title' => 'Main Page', |
187 | | - 'user' => 'WikiSysop', |
| 187 | + 'user' => self::$userName, |
188 | 188 | 'token' => $pageinfo['rollbacktoken'], |
189 | 189 | 'watchlist' => 'watch' ), $data ); |
190 | 190 | |