Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4040026
ChoiceDataProviderTest.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
ChoiceDataProviderTest.php
View Options
<?php
/**
* @group CentralNotice
* @group medium
* @group Database
* @covers \ChoiceDataProvider
*/
class
ChoiceDataProviderTest
extends
MediaWikiIntegrationTestCase
{
/** @var CentralNoticeTestFixtures */
private
$cnFixtures
;
protected
function
setUp
():
void
{
parent
::
setUp
();
$this
->
cnFixtures
=
new
CentralNoticeTestFixtures
(
$this
->
getTestSysop
()->
getUser
()
);
}
protected
function
tearDown
():
void
{
$this
->
cnFixtures
->
tearDownTestCases
();
parent
::
tearDown
();
}
/**
* @dataProvider CentralNoticeTestFixtures::allocationsTestCasesProvision
*/
public
function
testProviderResponse
(
$name
,
$testCase
)
{
$this
->
cnFixtures
->
setupTestCaseFromFixtureData
(
$testCase
);
foreach
(
$testCase
[
'contexts_and_outputs'
]
as
$cANdOName
=>
$contextAndOutput
)
{
$choices
=
ChoiceDataProvider
::
getChoices
(
$contextAndOutput
[
'context'
][
'project'
],
$contextAndOutput
[
'context'
][
'language'
]
);
$this
->
cnFixtures
->
assertChoicesEqual
(
$this
,
$contextAndOutput
[
'choices'
],
$choices
,
$cANdOName
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 15 2026, 05:30 (13 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ee/10/1cbe30a3a96badce0552934020d4
Default Alt Text
ChoiceDataProviderTest.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment