Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5979027
TgConverterTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
624 B
Referenced Files
None
Subscribers
None
TgConverterTest.php
View Options
<?php
/**
* @group Language
* @covers \TgConverter
*/
class
TgConverterTest
extends
MediaWikiIntegrationTestCase
{
use
LanguageConverterTestTrait
;
/**
* @dataProvider provideAutoConvertToAllVariants
*/
public
function
testAutoConvertToAllVariants
(
$result
,
$value
)
{
$this
->
assertEquals
(
$result
,
$this
->
getLanguageConverter
()->
autoConvertToAllVariants
(
$value
)
);
}
public
static
function
provideAutoConvertToAllVariants
()
{
return
[
[
[
'tg'
=>
'г'
,
'tg-latn'
=>
'g'
,
],
'г'
],
[
[
'tg'
=>
'g'
,
'tg-latn'
=>
'g'
,
],
'g'
],
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 20:42 (4 d, 7 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
14/fe/2e6d80f322d40f5e863101c7d671
Default Alt Text
TgConverterTest.php (624 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment