mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-27 16:50:00 +00:00
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:
parent
98ac345756
commit
bede1c0178
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in a new issue