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