Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4153678
ResourceLoaderULSModuleTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
742 B
Referenced Files
None
Subscribers
None
ResourceLoaderULSModuleTest.php
View Options
<?php
namespace
UniversalLanguageSelector\Tests
;
use
MediaWiki\ResourceLoader\Context
;
use
UniversalLanguageSelector\ResourceLoaderULSModule
;
/**
* @covers \UniversalLanguageSelector\ResourceLoaderULSModule
*
* @license GPL-2.0-or-later
* @author Thiemo Kreuz
*/
class
ResourceLoaderULSModuleTest
extends
\PHPUnit\Framework\TestCase
{
public
function
testAllReturnValues
()
{
$instance
=
new
ResourceLoaderULSModule
();
$context
=
$this
->
createMock
(
Context
::
class
);
$context
->
method
(
'getLanguage'
)
->
willReturn
(
'en'
);
$script
=
$instance
->
getScript
(
$context
);
$this
->
assertStringStartsWith
(
'mw.config.set({"wgULSLanguages":{"'
,
$script
);
$this
->
assertTrue
(
$instance
->
enableModuleContentVersion
()
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 19 2026, 20:49 (7 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a7/0d/ebd30096dd17b2d869113169211f
Default Alt Text
ResourceLoaderULSModuleTest.php (742 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment