<?php
+use MediaWiki\MediaWikiServices;
+
/**
* @group API
* @group medium
public function testSpecialPageAliases() {
$this->assertCount(
- count( SpecialPageFactory::getNames() ),
+ count( MediaWikiServices::getInstance()->getSpecialPageFactory()->getNames() ),
$this->doQuery( 'specialpagealiases' )
);
}
public function testExtensionTags() {
global $wgParser;
- $wgParser->firstCallInit();
$expected = array_map(
function ( $tag ) {
return "<$tag>";
public function testFunctionHooks() {
global $wgParser;
- $wgParser->firstCallInit();
$this->assertSame( $wgParser->getFunctionHooks(), $this->doQuery( 'functionhooks' ) );
}