From 7b946ffb4b7bdafa659941e6a73ea9d4b012df3f Mon Sep 17 00:00:00 2001 From: Daimona Eaytoy Date: Sat, 14 Dec 2019 13:45:35 +0100 Subject: Fixes for PHPUnit 8 compat in DB suite Once again, this fixes all issues aside from assertArraySubset. Bug: T192167 Change-Id: I45c91dc1cf23f04140576dc66233558bb6021324 --- tests/phpunit/includes/api/query/ApiQueryTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/phpunit/includes/api/query/ApiQueryTest.php') diff --git a/tests/phpunit/includes/api/query/ApiQueryTest.php b/tests/phpunit/includes/api/query/ApiQueryTest.php index 132f0db30460..7367fccdcf6c 100644 --- a/tests/phpunit/includes/api/query/ApiQueryTest.php +++ b/tests/phpunit/includes/api/query/ApiQueryTest.php @@ -170,6 +170,6 @@ class ApiQueryTest extends ApiTestCase { $this->assertArrayHasKey( 'query', $data[0] ); $this->assertArrayHasKey( 'export', $data[0]['query'] ); // This response field contains an XML document even if no pages were exported - $this->assertNotContains( $title->getPrefixedText(), $data[0]['query']['export'] ); + $this->assertStringNotContainsString( $title->getPrefixedText(), $data[0]['query']['export'] ); } } -- cgit v1.2.3