mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-27 16:30:12 +00:00
Merge "tests: Widen @covers
annotations"
This commit is contained in:
commit
5b4e869014
|
@ -7,7 +7,6 @@ use MediaWiki\ResourceLoader\Context;
|
|||
|
||||
/**
|
||||
* @covers \Cite\ResourceLoader\CiteCSSFileModule
|
||||
*
|
||||
* @license GPL-2.0-or-later
|
||||
*/
|
||||
class CiteCSSFileModuleTest extends \MediaWikiIntegrationTestCase {
|
||||
|
|
|
@ -7,7 +7,7 @@ use ParserOptions;
|
|||
|
||||
/**
|
||||
* @group Database
|
||||
*
|
||||
* @covers \Cite\ReferenceStack
|
||||
* @license GPL-2.0-or-later
|
||||
*/
|
||||
class CiteDbTest extends \MediaWikiIntegrationTestCase {
|
||||
|
@ -15,9 +15,8 @@ class CiteDbTest extends \MediaWikiIntegrationTestCase {
|
|||
protected $tablesUsed = [ 'page' ];
|
||||
|
||||
/**
|
||||
* Edge case where a parser call within `<ref>` parse clears the original parser state.
|
||||
* Parser call within `<ref>` parse clears the original parser state.
|
||||
* @see https://phabricator.wikimedia.org/T240248
|
||||
* @covers \Cite\ReferenceStack::pushRef
|
||||
*/
|
||||
public function testReferenceStackError() {
|
||||
$this->insertPage( 'Cite-tracking-category-cite-error', '{{PAGENAME}}', NS_MEDIAWIKI );
|
||||
|
|
|
@ -7,15 +7,11 @@ use Cite\Hooks\CiteHooks;
|
|||
use MediaWiki\User\Options\StaticUserOptionsLookup;
|
||||
|
||||
/**
|
||||
* @coversDefaultClass \Cite\Hooks\CiteHooks
|
||||
*
|
||||
* @covers \Cite\Hooks\CiteHooks
|
||||
* @license GPL-2.0-or-later
|
||||
*/
|
||||
class CiteHooksTest extends \MediaWikiIntegrationTestCase {
|
||||
|
||||
/**
|
||||
* @covers ::onResourceLoaderGetConfigVars
|
||||
*/
|
||||
public function testOnResourceLoaderGetConfigVars() {
|
||||
$vars = [];
|
||||
|
||||
|
@ -28,9 +24,6 @@ class CiteHooksTest extends \MediaWikiIntegrationTestCase {
|
|||
$this->assertArrayHasKey( 'wgCiteResponsiveReferences', $vars );
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ::onAPIQuerySiteInfoGeneralInfo
|
||||
*/
|
||||
public function testOnAPIQuerySiteInfoGeneralInfo() {
|
||||
$api = $this->createMock( ApiQuerySiteinfo::class );
|
||||
$api->expects( $this->once() )
|
||||
|
|
|
@ -12,8 +12,7 @@ use ParserOptions;
|
|||
use Wikimedia\TestingAccessWrapper;
|
||||
|
||||
/**
|
||||
* @coversDefaultClass \Cite\Cite
|
||||
*
|
||||
* @covers \Cite\Cite
|
||||
* @license GPL-2.0-or-later
|
||||
*/
|
||||
class CiteIntegrationTest extends \MediaWikiIntegrationTestCase {
|
||||
|
@ -24,7 +23,6 @@ class CiteIntegrationTest extends \MediaWikiIntegrationTestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers ::checkRefsNoReferences
|
||||
* @dataProvider provideCheckRefsNoReferences
|
||||
*/
|
||||
public function testCheckRefsNoReferences(
|
||||
|
|
|
@ -6,13 +6,10 @@ use Cite\ReferenceMessageLocalizer;
|
|||
use LanguageQqx;
|
||||
|
||||
/**
|
||||
* @coversDefaultClass \Cite\ReferenceMessageLocalizer
|
||||
* @covers \Cite\ReferenceMessageLocalizer
|
||||
*/
|
||||
class ReferenceMessageLocalizerTest extends \MediaWikiIntegrationTestCase {
|
||||
|
||||
/**
|
||||
* @covers ::msg
|
||||
*/
|
||||
public function testMsg() {
|
||||
$localizer = new ReferenceMessageLocalizer( new LanguageQqx() );
|
||||
$this->assertSame(
|
||||
|
|
Loading…
Reference in a new issue