X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2FApiQueryAllPagesTest.php;h=a42aea0f6e77e2e674aca4e244bf57b13fe301f8;hb=d2227f415a9bffeda82fcc1bd98df5953bd3cccc;hp=2d89aa5433c370d800816f8a8e47ccb9cc67ce43;hpb=54b816976142fd9086a11a1e0e4fb6053d00082d;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/api/ApiQueryAllPagesTest.php b/tests/phpunit/includes/api/ApiQueryAllPagesTest.php index 2d89aa5433..a42aea0f6e 100644 --- a/tests/phpunit/includes/api/ApiQueryAllPagesTest.php +++ b/tests/phpunit/includes/api/ApiQueryAllPagesTest.php @@ -30,7 +30,6 @@ class ApiQueryAllPagesTest extends ApiTestCase { $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] ); } }