mediawiki-extensions-Cite/tests/phpunit/ReferenceMessageLocalizerTest.php
Adam Wight bccb92335f Introduce ReferenceMessageLocalizer
Encapsulate the language interfaces, this will be used to replace
global wfMessage calls in future patches.

Change-Id: I7857f3e5154626e0b29977610b81103d91615f65
2019-12-04 13:40:05 +01:00

22 lines
462 B
PHP

<?php
namespace Cite;
use LanguageQqx;
use MediaWikiIntegrationTestCase;
/**
* @coversDefaultClass \Cite\ReferenceMessageLocalizer
*/
class ReferenceMessageLocalizerTest extends MediaWikiIntegrationTestCase {
/**
* @covers ::msg
*/
public function testMsg() {
$localizer = new ReferenceMessageLocalizer( new LanguageQqx() );
$this->assertSame(
'(cite_reference_link_prefix)',
$localizer->msg( 'cite_reference_link_prefix' )->plain() );
}
}