Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2750770
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
Fri, Jul 3, 17:07 (18 h, 46 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f0/3b/62f4b443a63c8d99bfa442097be6
Default Alt Text
ResourceLoaderULSModuleTest.php (742 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment