mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 09:43:06 +00:00
Use $this->getServiceContainer() tests
Consistently use $this->getServiceContainer() instead of MediaWikiServices::getInstance() in tests. Change-Id: I409e4c25b301c9110348bedb7f4457030bbc17e5
This commit is contained in:
parent
cb18961b8e
commit
fcaea55e3d
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue