Page MenuHomeWickedGov Phorge

ServiceWiringTest.php
No OneTemporary

Size
720 B
Referenced Files
None
Subscribers
None

ServiceWiringTest.php

<?php
/**
* Copy of CentralAuth's CentralAuthServiceWiringTest.php that tests
* the ServiceWiring.php file for the Nuke extension.
*/
namespace MediaWiki\Extension\Nuke\Test;
use MediaWiki\MediaWikiServices;
use MediaWikiIntegrationTestCase;
/**
* @coversNothing
* @group Database
*/
class ServiceWiringTest extends MediaWikiIntegrationTestCase {
/** @dataProvider provideService */
public function testService( string $name ) {
MediaWikiServices::getInstance()->get( $name );
$this->addToAssertionCount( 1 );
}
public static function provideService() {
$wiring = require __DIR__ . '/../../../includes/ServiceWiring.php';
foreach ( $wiring as $name => $_ ) {
yield $name => [ $name ];
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 3, 03:07 (3 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a7/30/75b8b735f031dea4e38a48371d20
Default Alt Text
ServiceWiringTest.php (720 B)

Event Timeline