Use $this->getServiceContainer() tests

Consistently use
	$this->getServiceContainer()
instead of
	MediaWikiServices::getInstance()
in tests.

Change-Id: I409e4c25b301c9110348bedb7f4457030bbc17e5
This commit is contained in:
Fomafix 2023-10-14 20:25:53 +00:00
parent cb18961b8e
commit fcaea55e3d

View file

@ -5,8 +5,6 @@
* as it could not be included as it's in another extension.
*/
use MediaWiki\MediaWikiServices;
/**
* @coversNothing
*/
@ -15,7 +13,7 @@ class CategoryTreeServiceWiringTest extends MediaWikiIntegrationTestCase {
* @dataProvider provideService
*/
public function testService( string $name ) {
MediaWikiServices::getInstance()->get( $name );
$this->getServiceContainer()->get( $name );
$this->addToAssertionCount( 1 );
}