mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-12-02 20:16:17 +00:00
29 lines
629 B
PHP
29 lines
629 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Copy of CentralAuth's CentralAuthServiceWiringTest.php
|
||
|
* as it could not be included as it's in another extension.
|
||
|
*/
|
||
|
|
||
|
use MediaWiki\MediaWikiServices;
|
||
|
|
||
|
/**
|
||
|
* @coversNothing
|
||
|
*/
|
||
|
class CategoryTreeServiceWiringTest extends MediaWikiIntegrationTestCase {
|
||
|
/**
|
||
|
* @dataProvider provideService
|
||
|
*/
|
||
|
public function testService( string $name ) {
|
||
|
MediaWikiServices::getInstance()->get( $name );
|
||
|
$this->addToAssertionCount( 1 );
|
||
|
}
|
||
|
|
||
|
public function provideService() {
|
||
|
$wiring = require __DIR__ . '/../../includes/ServiceWiring.php';
|
||
|
foreach ( $wiring as $name => $_ ) {
|
||
|
yield $name => [ $name ];
|
||
|
}
|
||
|
}
|
||
|
}
|