Merge "Introduce ContentHandler::getSecondaryDataUpdates."
[lhc/web/wiklou.git] / tests / phpunit / includes / api / ApiQuerySiteinfoTest.php
index 7b93571..2d7f8a4 100644 (file)
@@ -1,8 +1,11 @@
 <?php
 
+use MediaWiki\MediaWikiServices;
+
 /**
  * @group API
  * @group medium
+ * @group Database
  *
  * @covers ApiQuerySiteinfo
  */
@@ -107,7 +110,7 @@ class ApiQuerySiteinfoTest extends ApiTestCase {
 
        public function testSpecialPageAliases() {
                $this->assertCount(
-                       count( SpecialPageFactory::getNames() ),
+                       count( MediaWikiServices::getInstance()->getSpecialPageFactory()->getNames() ),
                        $this->doQuery( 'specialpagealiases' )
                );
        }
@@ -571,7 +574,6 @@ class ApiQuerySiteinfoTest extends ApiTestCase {
        public function testExtensionTags() {
                global $wgParser;
 
-               $wgParser->firstCallInit();
                $expected = array_map(
                        function ( $tag ) {
                                return "<$tag>";
@@ -585,7 +587,6 @@ class ApiQuerySiteinfoTest extends ApiTestCase {
        public function testFunctionHooks() {
                global $wgParser;
 
-               $wgParser->firstCallInit();
                $this->assertSame( $wgParser->getFunctionHooks(), $this->doQuery( 'functionhooks' ) );
        }