2019-12-03 23:39:28 +00:00
|
|
|
<?php
|
|
|
|
|
2019-12-10 15:24:49 +00:00
|
|
|
namespace Cite\Tests;
|
2019-12-03 23:39:28 +00:00
|
|
|
|
2019-12-10 15:24:49 +00:00
|
|
|
use Cite\ReferenceMessageLocalizer;
|
2019-12-03 23:39:28 +00:00
|
|
|
use LanguageQqx;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @coversDefaultClass \Cite\ReferenceMessageLocalizer
|
|
|
|
*/
|
2019-12-10 15:24:49 +00:00
|
|
|
class ReferenceMessageLocalizerTest extends \MediaWikiIntegrationTestCase {
|
2019-12-09 14:07:37 +00:00
|
|
|
|
2019-12-03 23:39:28 +00:00
|
|
|
/**
|
|
|
|
* @covers ::msg
|
|
|
|
*/
|
|
|
|
public function testMsg() {
|
|
|
|
$localizer = new ReferenceMessageLocalizer( new LanguageQqx() );
|
|
|
|
$this->assertSame(
|
|
|
|
'(cite_reference_link_prefix)',
|
|
|
|
$localizer->msg( 'cite_reference_link_prefix' )->plain() );
|
|
|
|
}
|
2019-12-09 14:07:37 +00:00
|
|
|
|
2019-12-03 23:39:28 +00:00
|
|
|
}
|