mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-24 06:54:00 +00:00
51ff3cc819
* Use the Html class to safely create HTML code. * $this->referenceStack can not be null any more. * $this->inReferencesGroup is not needed during output, only when parsing tags. * Replace ReferencesStack::getGroupRefs() as well as deleteGroup() with a combined popGroup() that does both things. * Extract the code responsible for the "responsive" behavior to a separate function. * Some TestingAccessWrapper are not needed. Change-Id: Ie1cf2533d7417ae2f6647664ff1145e37b814a39
24 lines
464 B
PHP
24 lines
464 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() );
|
|
}
|
|
|
|
}
|