The description had two errors:
* It talked about the presence of a specific value, but all it did
was checking a count.
* It was talking about the value *not* being there.
I just removed it. The possible error message from PHPUnit should be
good enough.
Change-Id: I7ea85dd37db8969bdd120f9600eeb6145e42eb1e
$this->assertArrayHasKey( 'query', $result[0] );
$this->assertArrayHasKey( 'allpages', $result[0]['query'] );
- $this->assertNotEquals( 0, count( $result[0]['query']['allpages'] ),
- 'allpages list does not contain page Category:Template:xyz' );
+ $this->assertContains( 'Category:Template:xyz', $result[0]['query']['allpages'][0] );
}
}