| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
namespace MediaWiki\Extension\Nuke\Test; |
| 9 |
|
| 10 |
use MediaWiki\MediaWikiServices; |
| 11 |
use MediaWikiIntegrationTestCase; |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
class ServiceWiringTest extends MediaWikiIntegrationTestCase { |
| 18 |
|
| 19 |
public function testService( string $name ) { |
| 20 |
MediaWikiServices::getInstance()->get( $name ); |
| 21 |
$this->addToAssertionCount( 1 ); |
| 22 |
} |
| 23 |
|
| 24 |
public static function provideService() { |
| 25 |
$wiring = require __DIR__ . '/../../../includes/ServiceWiring.php'; |
| 26 |
foreach ( $wiring as $name => $_ ) { |
| 27 |
yield $name => [ $name ]; |
| 28 |
} |
| 29 |
} |
| 30 |
} |