mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-30 17:54:20 +00:00
f58114be65
Bug: T343771 Change-Id: Ib7ec113a21fd36a82c0345ffb98ed8692d82155d
22 lines
483 B
PHP
22 lines
483 B
PHP
<?php
|
|
|
|
namespace Cite\Tests;
|
|
|
|
use Cite\ReferenceMessageLocalizer;
|
|
|
|
/**
|
|
* @covers \Cite\ReferenceMessageLocalizer
|
|
* @license GPL-2.0-or-later
|
|
*/
|
|
class ReferenceMessageLocalizerTest extends \MediaWikiIntegrationTestCase {
|
|
|
|
public function testMsg() {
|
|
$lang = $this->getServiceContainer()->getLanguageFactory()->getLanguage( 'qqx' );
|
|
$localizer = new ReferenceMessageLocalizer( $lang );
|
|
$this->assertSame(
|
|
'(cite-desc)',
|
|
$localizer->msg( 'cite-desc' )->plain() );
|
|
}
|
|
|
|
}
|