MediaWiki  1.34.0
GadgetTest Class Reference

@group Gadgets More...

Inheritance diagram for GadgetTest:
Collaboration diagram for GadgetTest:

Public Member Functions

 testDependencies ()
 @covers MediaWikiGadgetsDefinitionRepo::newFromDefinition @covers Gadget::getDependencies More...
 
 testInvalidLines ()
 @covers MediaWikiGadgetsDefinitionRepo::newFromDefinition More...
 
 testIsAllowed ()
 @covers MediaWikiGadgetsDefinitionRepo::newFromDefinition @covers Gadget::isAllowed More...
 
 testIsHidden ()
 @covers MediaWikiGadgetsDefinitionRepo::newFromDefinition @covers Gadget::isHidden More...
 
 testRLtag ()
 @covers MediaWikiGadgetsDefinitionRepo::newFromDefinition @covers Gadget::supportsResourceLoader @covers Gadget::getLegacyScripts More...
 
 testSimpleCases ()
 @covers MediaWikiGadgetsDefinitionRepo::newFromDefinition @covers Gadget More...
 
 testSkinsTag ()
 @covers MediaWikiGadgetsDefinitionRepo::newFromDefinition @covers Gadget::isSkinSupported More...
 
 testType ( $message, $definition, $gType, $mType)
 @dataProvider provideGetType @covers MediaWikiGadgetsDefinitionRepo::newFromDefinition @covers Gadget::getType @covers GadgetResourceLoaderModule::getType More...
 

Static Public Member Functions

static provideGetType ()
 

Private Member Functions

 create ( $line)
 
 getModule (Gadget $g)
 

Detailed Description

@group Gadgets

Definition at line 8 of file GadgetTest.php.

Member Function Documentation

◆ create()

GadgetTest::create (   $line)
private
Parameters
string$line
Returns
Gadget

Definition at line 13 of file GadgetTest.php.

References $line.

Referenced by testDependencies(), testIsAllowed(), testIsHidden(), testRLtag(), testSimpleCases(), testSkinsTag(), and testType().

◆ getModule()

GadgetTest::getModule ( Gadget  $g)
private

Definition at line 20 of file GadgetTest.php.

Referenced by testType().

◆ provideGetType()

static GadgetTest::provideGetType ( )
static

Definition at line 115 of file GadgetTest.php.

◆ testDependencies()

GadgetTest::testDependencies ( )

◆ testInvalidLines()

GadgetTest::testInvalidLines ( )

◆ testIsAllowed()

GadgetTest::testIsAllowed ( )

◆ testIsHidden()

GadgetTest::testIsHidden ( )

@covers MediaWikiGadgetsDefinitionRepo::newFromDefinition @covers Gadget::isHidden

Definition at line 196 of file GadgetTest.php.

References create().

◆ testRLtag()

GadgetTest::testRLtag ( )

◆ testSimpleCases()

GadgetTest::testSimpleCases ( )

@covers MediaWikiGadgetsDefinitionRepo::newFromDefinition @covers Gadget

Definition at line 41 of file GadgetTest.php.

References create(), and Gadget\getModuleName().

◆ testSkinsTag()

GadgetTest::testSkinsTag ( )

◆ testType()

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().


The documentation for this class was generated from the following file: