Page MenuHomeWickedGov Phorge

CheckUserServiceWiringTest.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

CheckUserServiceWiringTest.php

<?php
/**
* Copy of CentralAuth's CentralAuthServiceWiringTest.php
* as it could not be included as it's in another extension.
*/
/**
* @coversNothing
* @group Database
*/
class CheckUserServiceWiringTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideService
*/
public function testService( string $name ) {
// The CheckUserGlobalContributionsPagerFactory service needs a GlobalPreferences service, so the test
// fails if it's not installed.
if ( $name === 'CheckUserGlobalContributionsPagerFactory' ) {
$this->markTestSkippedIfExtensionNotLoaded( 'GlobalPreferences' );
}
// CheckUserUserInfoCardService has dependencies provided by the GrowthExperiments extension.
if ( $name === 'CheckUserUserInfoCardService' ) {
$this->markTestSkippedIfExtensionNotLoaded( 'GrowthExperiments' );
}
$this->getServiceContainer()->get( $name );
$this->addToAssertionCount( 1 );
}
public static function provideService() {
$wiring = require __DIR__ . '/../../src/ServiceWiring.php';
foreach ( $wiring as $name => $_ ) {
yield $name => [ $name ];
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Aug 18 2026, 12:11 (4 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f4/b5/3482aee30d71b016e0472f8cb934
Default Alt Text
CheckUserServiceWiringTest.php (1 KB)

Event Timeline