mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-12-04 19:38:16 +00:00
4377f0923d
Same arguments as in Iafa2412. The one reason to use more detailled per-method @covers annotations is to avoid "accidental coverage" where code is marked as being covered by tests that don't assert anything that would be meaningful for this code. This is especially a problem with older, bigger classes with lots of side effects. But all the new classes we introduced over the years are small, with predictable, local effects. That's also why we keep the more detailled @covers annotations for the original Cite class. Bug: T353227 Bug: T353269 Change-Id: I69850f4d740d8ad5a7c2368b9068dc91e47cc797
22 lines
462 B
PHP
22 lines
462 B
PHP
<?php
|
|
|
|
namespace Cite\Tests;
|
|
|
|
use Cite\ReferenceMessageLocalizer;
|
|
use LanguageQqx;
|
|
|
|
/**
|
|
* @covers \Cite\ReferenceMessageLocalizer
|
|
* @license GPL-2.0-or-later
|
|
*/
|
|
class ReferenceMessageLocalizerTest extends \MediaWikiIntegrationTestCase {
|
|
|
|
public function testMsg() {
|
|
$localizer = new ReferenceMessageLocalizer( new LanguageQqx() );
|
|
$this->assertSame(
|
|
'(cite_reference_link_prefix)',
|
|
$localizer->msg( 'cite_reference_link_prefix' )->plain() );
|
|
}
|
|
|
|
}
|