Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4092381
CheckUserServiceWiringTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
CheckUserServiceWiringTest.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment