Index: trunk/phase3/tests/phpunit/includes/api/ApiBlockTest.php |
— | — | @@ -15,11 +15,11 @@ |
16 | 16 | } |
17 | 17 | |
18 | 18 | function addDBData() { |
19 | | - $user = User::newFromName( 'UTBlockee' ); |
| 19 | + $user = User::newFromName( 'UTApiBlockee' ); |
20 | 20 | |
21 | 21 | if ( $user->getId() == 0 ) { |
22 | 22 | $user->addToDatabase(); |
23 | | - $user->setPassword( 'UTBlockeePassword' ); |
| 23 | + $user->setPassword( 'UTApiBlockeePassword' ); |
24 | 24 | |
25 | 25 | $user->saveSettings(); |
26 | 26 | } |
— | — | @@ -29,10 +29,10 @@ |
30 | 30 | |
31 | 31 | $data = $this->getTokens(); |
32 | 32 | |
33 | | - $user = User::newFromName( 'UTBlockee' ); |
| 33 | + $user = User::newFromName( 'UTApiBlockee' ); |
34 | 34 | |
35 | 35 | if ( !$user->getId() ) { |
36 | | - $this->markTestIncomplete( "The user UTBlockee does not exist" ); |
| 36 | + $this->markTestIncomplete( "The user UTApiBlockee does not exist" ); |
37 | 37 | } |
38 | 38 | |
39 | 39 | if( !isset( $data[0]['query']['pages'] ) ) { |
— | — | @@ -45,15 +45,15 @@ |
46 | 46 | |
47 | 47 | $data = $this->doApiRequest( array( |
48 | 48 | 'action' => 'block', |
49 | | - 'user' => 'UTBlockee', |
| 49 | + 'user' => 'UTApiBlockee', |
50 | 50 | 'reason' => 'Some reason', |
51 | 51 | 'token' => $pageinfo['blocktoken'] ), $data ); |
52 | 52 | |
53 | | - $block = Block::newFromTarget('UTBlockee'); |
| 53 | + $block = Block::newFromTarget('UTApiBlockee'); |
54 | 54 | |
55 | 55 | $this->assertTrue( !is_null( $block ), 'Block is valid' ); |
56 | 56 | |
57 | | - $this->assertEquals( 'UTBlockee', (string)$block->getTarget() ); |
| 57 | + $this->assertEquals( 'UTApiBlockee', (string)$block->getTarget() ); |
58 | 58 | $this->assertEquals( 'Some reason', $block->mReason ); |
59 | 59 | $this->assertEquals( 'infinity', $block->mExpiry ); |
60 | 60 | |