Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4090824
ServiceWiringTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
726 B
Referenced Files
None
Subscribers
None
ServiceWiringTest.php
View Options
<?php
/**
* Copy of CentralAuth's CentralAuthServiceWiringTest.php
* used to test the ServiceWiring.php file.
*/
namespace
MediaWiki\Extension\DiscussionTools\Tests
;
/**
* Tests ServiceWiring.php
*
* @coversNothing PHPUnit does not support covering annotations for files
* @group DiscussionTools
*/
class
ServiceWiringTest
extends
IntegrationTestCase
{
/**
* @dataProvider provideService
*/
public
function
testService
(
string
$name
)
{
$this
->
getServiceContainer
()->
get
(
$name
);
$this
->
addToAssertionCount
(
1
);
}
public
static
function
provideService
()
{
$wiring
=
require
__DIR__
.
'/../../includes/ServiceWiring.php'
;
foreach
(
$wiring
as
$name
=>
$_
)
{
yield
$name
=>
[
$name
];
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 18 2026, 11:21 (5 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
09/61/90782c1be6e192f1026ca3c65942
Default Alt Text
ServiceWiringTest.php (726 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment