From: jenkins-bot Date: Tue, 1 Oct 2019 13:31:19 +0000 (+0000) Subject: Merge "tests: Fix broken assertion in ApiQueryAllPagesTest" X-Git-Tag: 1.34.0-rc.0~33 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=fb04cc5a7ef629703535dccdaecd6fe02f203c81;hp=01749527380c3d012a68e2705160078c018f22f2 Merge "tests: Fix broken assertion in ApiQueryAllPagesTest" --- 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] ); } }