Page MenuHomeWickedGov Phorge

ServiceWiringTest.php
No OneTemporary

Size
639 B
Referenced Files
None
Subscribers
None

ServiceWiringTest.php

<?php
/**
* Verify that all services in this extension can be instantiated.
*/
namespace MediaWiki\GlobalUserPage\Tests\Integration;
use MediaWikiIntegrationTestCase;
/**
* @coversNothing
*/
class ServiceWiringTest extends MediaWikiIntegrationTestCase {
/** @dataProvider provideServices */
public function testService( string $name ): void {
$this->getServiceContainer()->get( $name );
$this->addToAssertionCount( 1 );
}
public static function provideServices(): iterable {
$wiring = require __DIR__ . '/../../../includes/ServiceWiring.php';
foreach ( $wiring as $name => $_ ) {
yield $name => [ $name ];
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 22, 04:15 (1 d, 6 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
01/48/17f2727a33556433a29cff54212a
Default Alt Text
ServiceWiringTest.php (639 B)

Event Timeline