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