Debian Codegraph @

extensions/Nuke/tests/phpunit/integration/ServiceWiringTest.php

raw symbols SCIP
1 <?php
2
3 /**
4 * Copy of CentralAuth's CentralAuthServiceWiringTest.php that tests
5 * the ServiceWiring.php file for the Nuke extension.
6 */
7
8 namespace MediaWiki\Extension\Nuke\Test;
9
10 use MediaWiki\MediaWikiServices;
11 use MediaWikiIntegrationTestCase;
12
13 /**
14 * @coversNothing
15 * @group Database
16 */
17 class ServiceWiringTest extends MediaWikiIntegrationTestCase {
18 /** @dataProvider provideService */
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 }