mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-27 08:20:02 +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;
|
||||
|
||||
use Cite\ReferenceMessageLocalizer;
|
||||
use LanguageQqx;
|
||||
|
||||
/**
|
||||
* @covers \Cite\ReferenceMessageLocalizer
|
||||
|
@ -12,7 +11,8 @@ use LanguageQqx;
|
|||
class ReferenceMessageLocalizerTest extends \MediaWikiIntegrationTestCase {
|
||||
|
||||
public function testMsg() {
|
||||
$localizer = new ReferenceMessageLocalizer( new LanguageQqx() );
|
||||
$lang = $this->getServiceContainer()->getLanguageFactory()->getLanguage( 'qqx' );
|
||||
$localizer = new ReferenceMessageLocalizer( $lang );
|
||||
$this->assertSame(
|
||||
'(cite-desc)',
|
||||
$localizer->msg( 'cite-desc' )->plain() );
|
||||
|
|
Loading…
Reference in a new issue