mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-30 17:54:20 +00:00
tests: Use LanguageFactory to create qqx language
Bug: T343771 Change-Id: Ib7ec113a21fd36a82c0345ffb98ed8692d82155d
This commit is contained in:
parent
f1bd3175fd
commit
f58114be65
|
@ -3,7 +3,6 @@
|
||||||
namespace Cite\Tests;
|
namespace Cite\Tests;
|
||||||
|
|
||||||
use Cite\ReferenceMessageLocalizer;
|
use Cite\ReferenceMessageLocalizer;
|
||||||
use LanguageQqx;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers \Cite\ReferenceMessageLocalizer
|
* @covers \Cite\ReferenceMessageLocalizer
|
||||||
|
@ -12,7 +11,8 @@ use LanguageQqx;
|
||||||
class ReferenceMessageLocalizerTest extends \MediaWikiIntegrationTestCase {
|
class ReferenceMessageLocalizerTest extends \MediaWikiIntegrationTestCase {
|
||||||
|
|
||||||
public function testMsg() {
|
public function testMsg() {
|
||||||
$localizer = new ReferenceMessageLocalizer( new LanguageQqx() );
|
$lang = $this->getServiceContainer()->getLanguageFactory()->getLanguage( 'qqx' );
|
||||||
|
$localizer = new ReferenceMessageLocalizer( $lang );
|
||||||
$this->assertSame(
|
$this->assertSame(
|
||||||
'(cite-desc)',
|
'(cite-desc)',
|
||||||
$localizer->msg( 'cite-desc' )->plain() );
|
$localizer->msg( 'cite-desc' )->plain() );
|
||||||
|
|
Loading…
Reference in a new issue