MediaWiki
1.34.0
|
@group Gadgets More...
Static Public Member Functions | |
static | provideGetType () |
Private Member Functions | |
create ( $line) | |
getModule (Gadget $g) | |
@group Gadgets
Definition at line 8 of file GadgetTest.php.
|
private |
string | $line |
Definition at line 13 of file GadgetTest.php.
References $line.
Referenced by testDependencies(), testIsAllowed(), testIsHidden(), testRLtag(), testSimpleCases(), testSkinsTag(), and testType().
|
private |
Definition at line 20 of file GadgetTest.php.
Referenced by testType().
|
static |
Definition at line 115 of file GadgetTest.php.
GadgetTest::testDependencies | ( | ) |
@covers MediaWikiGadgetsDefinitionRepo::newFromDefinition @covers Gadget::getDependencies
Definition at line 108 of file GadgetTest.php.
References create().
GadgetTest::testInvalidLines | ( | ) |
@covers MediaWikiGadgetsDefinitionRepo::newFromDefinition
Definition at line 31 of file GadgetTest.php.
GadgetTest::testIsAllowed | ( | ) |
@covers MediaWikiGadgetsDefinitionRepo::newFromDefinition @covers Gadget::isAllowed
Definition at line 70 of file GadgetTest.php.
References create(), and User\isAllowed().
GadgetTest::testIsHidden | ( | ) |
@covers MediaWikiGadgetsDefinitionRepo::newFromDefinition @covers Gadget::isHidden
Definition at line 196 of file GadgetTest.php.
References create().
GadgetTest::testRLtag | ( | ) |
@covers MediaWikiGadgetsDefinitionRepo::newFromDefinition @covers Gadget::supportsResourceLoader @covers Gadget::getLegacyScripts
Definition at line 59 of file GadgetTest.php.
References create().
GadgetTest::testSimpleCases | ( | ) |
@covers MediaWikiGadgetsDefinitionRepo::newFromDefinition @covers Gadget
Definition at line 41 of file GadgetTest.php.
References create(), and Gadget\getModuleName().
GadgetTest::testSkinsTag | ( | ) |
@covers MediaWikiGadgetsDefinitionRepo::newFromDefinition @covers Gadget::isSkinSupported
Definition at line 94 of file GadgetTest.php.
References create().
GadgetTest::testType | ( | $message, | |
$definition, | |||
$gType, | |||
$mType | |||
) |
@dataProvider provideGetType @covers MediaWikiGadgetsDefinitionRepo::newFromDefinition @covers Gadget::getType @covers GadgetResourceLoaderModule::getType
Definition at line 186 of file GadgetTest.php.
References create(), and getModule().