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