mediawiki-extensions-Cite/tests/phpunit/ReferenceMessageLocalizerTest.php
Umherirrender f58114be65 tests: Use LanguageFactory to create qqx language
Bug: T343771
Change-Id: Ib7ec113a21fd36a82c0345ffb98ed8692d82155d
2024-07-20 21:40:18 +02:00

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() );
}
}