diff options
Diffstat (limited to 'tests/phpunit/includes/api/query/ApiQuerySiteinfoTest.php')
-rw-r--r-- | tests/phpunit/includes/api/query/ApiQuerySiteinfoTest.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/phpunit/includes/api/query/ApiQuerySiteinfoTest.php b/tests/phpunit/includes/api/query/ApiQuerySiteinfoTest.php index 52ae188b60ca..3a7bfb6c0940 100644 --- a/tests/phpunit/includes/api/query/ApiQuerySiteinfoTest.php +++ b/tests/phpunit/includes/api/query/ApiQuerySiteinfoTest.php @@ -156,15 +156,15 @@ class ApiQuerySiteinfoTest extends ApiTestCase { } public function testSpecialPageAliases() { - $this->assertCount( - count( $this->getServiceContainer()->getSpecialPageFactory()->getNames() ), + $this->assertSameSize( + $this->getServiceContainer()->getSpecialPageFactory()->getNames(), $this->doQuery( 'specialpagealiases' ) ); } public function testMagicWords() { - $this->assertCount( - count( $this->getServiceContainer()->getContentLanguage()->getMagicWords() ), + $this->assertSameSize( + $this->getServiceContainer()->getContentLanguage()->getMagicWords(), $this->doQuery( 'magicwords' ) ); } @@ -181,8 +181,7 @@ class ApiQuerySiteinfoTest extends ApiTestCase { MainConfigNames::ScriptPath => '/w', ] ); - $dbw = wfGetDB( DB_PRIMARY ); - $dbw->insert( + $this->getDb()->insert( 'interwiki', [ [ |