Index: trunk/phase3/tests/phpunit/includes/api/ApiPurgeTest.php |
— | — | @@ -22,9 +22,12 @@ |
23 | 23 | 'action' => 'purge', |
24 | 24 | 'titles' => 'UTPage|' . $somePage . '|%5D' ) ); |
25 | 25 | |
26 | | - $this->assertArrayHasKey( 'purge', $data[0] ); |
27 | | - $this->assertEquals( 3, count( $data[0]['purge'] ) ); |
| 26 | + $this->assertArrayHasKey( 'purge', $data[0], |
| 27 | + "Must receive a 'purge' result from API" ); |
28 | 28 | |
| 29 | + $this->assertEquals( 3, count( $data[0]['purge'] ), |
| 30 | + "Purge request for three articles should give back three results received: " . var_export( $data[0]['purge'], true ) ); |
| 31 | + |
29 | 32 | $pages = array( 'UTPage' => 'purged', $somePage => 'missing', '%5D' => 'invalid' ); |
30 | 33 | foreach( $data[0]['purge'] as $v ) { |
31 | 34 | $this->assertArrayHasKey( $pages[$v['title']], $v ); |