MediaWiki  master
ExtensionProcessorTest Class Reference

ExtensionProcessor. More...

Inheritance diagram for ExtensionProcessorTest:
Collaboration diagram for ExtensionProcessorTest:

Public Member Functions

 setUp ()
 
 testAttributes1 ()
 Attributes under manifest_version 1. More...
 
 testAttributes1_notarray ()
 
 testDuplicateConfigKey1 ()
 RuntimeException. More...
 
 testDuplicateConfigKey2 ()
 RuntimeException. More...
 
 testExtractAttributes ()
 Attributes under manifest_version 2. More...
 
 testExtractConfig1 ()
 
 testExtractConfig2 ()
 
 testExtractCredits ()
 
 testExtractExtensionMessagesFiles ( $input, $expected)
 provideExtractExtensionMessagesFiles More...
 
static array testExtractInfo ()
 
 testExtractMessagesDirs ( $input, $expected)
 provideExtractMessagesDirs More...
 
 testExtractNamespaces ()
 
 testExtractPathBasedGlobal ()
 
 testExtractResourceLoaderModules ( $input, array $expectedGlobals, array $expectedAttribs=[])
 provideExtractResourceLoaderModules More...
 
 testGetDevRequirements ()
 
 testGetExtraAutoloaderPaths ()
 
 testGetRequirements ()
 
 testGlobalSettingsDocumentedInSchema ()
 Verify that extension.schema.json is in sync with ExtensionProcessor. More...
 
 testRegisterHooks ( $pre, $info, $expected)
 provideRegisterHooks More...
 

Static Public Member Functions

static provideExtractExtensionMessagesFiles ()
 
static provideExtractMessagesDirs ()
 
static provideExtractResourceLoaderModules ()
 
static provideRegisterHooks ()
 
static provideSetToGlobal ()
 

Public Attributes

 $dirname
 

Static Public Attributes

static array $default
 'name' is absolutely required More...
 

Private Attributes

 $dir
 

Additional Inherited Members

- Protected Member Functions inherited from MediaWikiUnitTestCase
 setUp ()
 
 tearDown ()
 

Detailed Description

ExtensionProcessor.

Definition at line 8 of file ExtensionProcessorTest.php.

Member Function Documentation

◆ provideExtractExtensionMessagesFiles()

static ExtensionProcessorTest::provideExtractExtensionMessagesFiles ( )
static

Definition at line 288 of file ExtensionProcessorTest.php.

References $dir.

◆ provideExtractMessagesDirs()

static ExtensionProcessorTest::provideExtractMessagesDirs ( )
static

Definition at line 324 of file ExtensionProcessorTest.php.

References $dir.

◆ provideExtractResourceLoaderModules()

static ExtensionProcessorTest::provideExtractResourceLoaderModules ( )
static

Definition at line 376 of file ExtensionProcessorTest.php.

References $dir.

◆ provideRegisterHooks()

static ExtensionProcessorTest::provideRegisterHooks ( )
static

Definition at line 116 of file ExtensionProcessorTest.php.

References ExtensionRegistry\MERGE_STRATEGY.

◆ provideSetToGlobal()

static ExtensionProcessorTest::provideSetToGlobal ( )
static

Definition at line 537 of file ExtensionProcessorTest.php.

◆ setUp()

ExtensionProcessorTest::setUp ( )

Definition at line 12 of file ExtensionProcessorTest.php.

◆ testAttributes1()

ExtensionProcessorTest::testAttributes1 ( )

Attributes under manifest_version 1.

Definition at line 627 of file ExtensionProcessorTest.php.

◆ testAttributes1_notarray()

ExtensionProcessorTest::testAttributes1_notarray ( )

Definition at line 663 of file ExtensionProcessorTest.php.

References class.

◆ testDuplicateConfigKey1()

ExtensionProcessorTest::testDuplicateConfigKey1 ( )

RuntimeException.

Definition at line 251 of file ExtensionProcessorTest.php.

References ExtensionProcessor\extractInfo().

◆ testDuplicateConfigKey2()

ExtensionProcessorTest::testDuplicateConfigKey2 ( )

RuntimeException.

Definition at line 271 of file ExtensionProcessorTest.php.

References ExtensionProcessor\extractInfo().

◆ testExtractAttributes()

ExtensionProcessorTest::testExtractAttributes ( )

Attributes under manifest_version 2.

Definition at line 592 of file ExtensionProcessorTest.php.

◆ testExtractConfig1()

ExtensionProcessorTest::testExtractConfig1 ( )

Definition at line 185 of file ExtensionProcessorTest.php.

References ExtensionProcessor\extractInfo().

◆ testExtractConfig2()

ExtensionProcessorTest::testExtractConfig2 ( )

◆ testExtractCredits()

ExtensionProcessorTest::testExtractCredits ( )

Definition at line 350 of file ExtensionProcessorTest.php.

References class.

◆ testExtractExtensionMessagesFiles()

ExtensionProcessorTest::testExtractExtensionMessagesFiles (   $input,
  $expected 
)

provideExtractExtensionMessagesFiles

Definition at line 315 of file ExtensionProcessorTest.php.

References $input, $out, $value, and as.

◆ testExtractInfo()

static array ExtensionProcessorTest::testExtractInfo ( )

Definition at line 27 of file ExtensionProcessorTest.php.

◆ testExtractMessagesDirs()

ExtensionProcessorTest::testExtractMessagesDirs (   $input,
  $expected 
)

provideExtractMessagesDirs

Definition at line 341 of file ExtensionProcessorTest.php.

References $input, $out, $value, and as.

◆ testExtractNamespaces()

ExtensionProcessorTest::testExtractNamespaces ( )

Definition at line 53 of file ExtensionProcessorTest.php.

◆ testExtractPathBasedGlobal()

ExtensionProcessorTest::testExtractPathBasedGlobal ( )

Definition at line 678 of file ExtensionProcessorTest.php.

◆ testExtractResourceLoaderModules()

ExtensionProcessorTest::testExtractResourceLoaderModules (   $input,
array  $expectedGlobals,
array  $expectedAttribs = [] 
)

provideExtractResourceLoaderModules

Definition at line 360 of file ExtensionProcessorTest.php.

References $input, $out, $value, and as.

◆ testGetDevRequirements()

ExtensionProcessorTest::testGetDevRequirements ( )

Definition at line 728 of file ExtensionProcessorTest.php.

◆ testGetExtraAutoloaderPaths()

ExtensionProcessorTest::testGetExtraAutoloaderPaths ( )

Definition at line 784 of file ExtensionProcessorTest.php.

◆ testGetRequirements()

ExtensionProcessorTest::testGetRequirements ( )

Definition at line 705 of file ExtensionProcessorTest.php.

◆ testGlobalSettingsDocumentedInSchema()

ExtensionProcessorTest::testGlobalSettingsDocumentedInSchema ( )

Verify that extension.schema.json is in sync with ExtensionProcessor.

Definition at line 799 of file ExtensionProcessorTest.php.

References $IP, as, class, FormatJson\decode(), and ExtensionRegistry\MANIFEST_VERSION.

◆ testRegisterHooks()

ExtensionProcessorTest::testRegisterHooks (   $pre,
  $info,
  $expected 
)

provideRegisterHooks

Definition at line 178 of file ExtensionProcessorTest.php.

References $pre.

Member Data Documentation

◆ $default

array ExtensionProcessorTest::$default
static
Initial value:
= [
'name' => 'FooBar'

'name' is absolutely required

Definition at line 23 of file ExtensionProcessorTest.php.

◆ $dir

ExtensionProcessorTest::$dir
private

◆ $dirname

ExtensionProcessorTest::$dirname

Definition at line 10 of file ExtensionProcessorTest.php.


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