More loose @covers annotations in GadgetTest

This is more an integration test than anything. The @covers tags I found
are to strict, in my opinion. These test cases cover more code.

Change-Id: I6cef7ce0c612ac3dfbb855c495032df1fe96f4af
This commit is contained in:
Thiemo Kreuz 2018-07-31 18:38:26 +02:00
parent 98ac345756
commit bede1c0178

View file

@ -42,9 +42,7 @@ class GadgetTest extends MediaWikiTestCase {
/**
* @covers MediaWikiGadgetsDefinitionRepo::newFromDefinition
* @covers Gadget::__construct
* @covers Gadget::getName
* @covers Gadget::getModuleName
* @covers Gadget
*/
public function testSimpleCases() {
$g = $this->create( '* foo bar| foo.css|foo.js|foo.bar' );
@ -175,8 +173,10 @@ class GadgetTest extends MediaWikiTestCase {
}
/**
* @covers MediaWikiGadgetsDefinitionRepo::fetchStructuredList
* @covers Gadget
* @covers GadgetHooks::getPreferences
* @covers GadgetRepo
* @covers MediaWikiGadgetsDefinitionRepo
*/
public function testPreferences() {
$prefs = [];