diff options
author | Daimona Eaytoy <daimona.wiki@gmail.com> | 2019-12-14 13:45:35 +0100 |
---|---|---|
committer | Krinkle <krinklemail@gmail.com> | 2019-12-15 00:27:54 +0000 |
commit | 7b946ffb4b7bdafa659941e6a73ea9d4b012df3f (patch) | |
tree | ae5a0dd06a2c4d8417aa149e6a869b9e70ffda90 /tests/phpunit/includes/api/query/ApiQueryTest.php | |
parent | 2e02e7fdb1a0439ea621104ccf6cc77dde3075c7 (diff) | |
download | mediawikicore-7b946ffb4b7bdafa659941e6a73ea9d4b012df3f.tar.gz mediawikicore-7b946ffb4b7bdafa659941e6a73ea9d4b012df3f.zip |
Fixes for PHPUnit 8 compat in DB suite
Once again, this fixes all issues aside from assertArraySubset.
Bug: T192167
Change-Id: I45c91dc1cf23f04140576dc66233558bb6021324
Diffstat (limited to 'tests/phpunit/includes/api/query/ApiQueryTest.php')
-rw-r--r-- | tests/phpunit/includes/api/query/ApiQueryTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
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'] ); } } |