X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2FApiQuerySiteinfoTest.php;h=129b7f9d6ada9d98b35714103aead74e24279f8a;hb=33afb7440a03df8d1878c94d2f3d3b9fdd1a848b;hp=7b93571013419cfa3a36e8ef7087575160934838;hpb=004ee6bf5ef13b1e34ae6f6900a16fbb963e6c24;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/api/ApiQuerySiteinfoTest.php b/tests/phpunit/includes/api/ApiQuerySiteinfoTest.php index 7b93571013..129b7f9d6a 100644 --- a/tests/phpunit/includes/api/ApiQuerySiteinfoTest.php +++ b/tests/phpunit/includes/api/ApiQuerySiteinfoTest.php @@ -1,5 +1,7 @@ assertCount( - count( SpecialPageFactory::getNames() ), + count( MediaWikiServices::getInstance()->getSpecialPageFactory()->getNames() ), $this->doQuery( 'specialpagealiases' ) ); } @@ -571,7 +573,6 @@ class ApiQuerySiteinfoTest extends ApiTestCase { public function testExtensionTags() { global $wgParser; - $wgParser->firstCallInit(); $expected = array_map( function ( $tag ) { return "<$tag>"; @@ -585,7 +586,6 @@ class ApiQuerySiteinfoTest extends ApiTestCase { public function testFunctionHooks() { global $wgParser; - $wgParser->firstCallInit(); $this->assertSame( $wgParser->getFunctionHooks(), $this->doQuery( 'functionhooks' ) ); }