MediaWiki REL1_33
ResourceLoaderClientHtmlTest Class Reference

ResourceLoader ResourceLoaderClientHtml. More...

Inheritance diagram for ResourceLoaderClientHtmlTest:
Collaboration diagram for ResourceLoaderClientHtmlTest:

Public Member Functions

 testGetBodyHtml ()
 
 testGetData ()
 
 testGetDocumentAttributes ()
 
 testGetHeadHtml ()
 
 testGetHeadHtmlWithNullTarget ()
 Confirm that a null 'target' is the same as no target.
 
 testGetHeadHtmlWithSafemode ()
 Confirm that 'safemode' is passed down to startup.
 
 testGetHeadHtmlWithTarget ()
 Confirm that 'target' is passed down to the startup module's load url.
 
 testMakeLoad (array $contextQuery, array $modules, $type, array $extraQuery, $expected)
 provideMakeLoad ResourceLoaderClientHtml ResourceLoaderModule::getModuleContent ResourceLoader
 

Static Public Member Functions

static provideMakeLoad ()
 

Static Private Member Functions

static expandVariables ( $text)
 
static makeContext ( $extraQuery=[])
 
static makeModule (array $options=[])
 
static makeSampleModules ()
 

Detailed Description

Member Function Documentation

◆ expandVariables()

static ResourceLoaderClientHtmlTest::expandVariables ( $text)
staticprivate

Definition at line 350 of file ResourceLoaderClientHtmlTest.php.

References and(), and ResourceLoaderTestCase\BLANK_VERSION.

Referenced by testGetHeadHtml(), and testMakeLoad().

◆ makeContext()

static ResourceLoaderClientHtmlTest::makeContext ( $extraQuery = [])
staticprivate

Definition at line 356 of file ResourceLoaderClientHtmlTest.php.

References and().

Referenced by testGetBodyHtml(), testGetData(), testGetHeadHtml(), and testMakeLoad().

◆ makeModule()

static ResourceLoaderClientHtmlTest::makeModule ( array $options = [])
staticprivate

Definition at line 374 of file ResourceLoaderClientHtmlTest.php.

References $options.

Referenced by makeSampleModules().

◆ makeSampleModules()

static ResourceLoaderClientHtmlTest::makeSampleModules ( )
staticprivate

◆ provideMakeLoad()

static ResourceLoaderClientHtmlTest::provideMakeLoad ( )
static

◆ testGetBodyHtml()

ResourceLoaderClientHtmlTest::testGetBodyHtml ( )

Definition at line 177 of file ResourceLoaderClientHtmlTest.php.

References $context, and(), and makeContext().

◆ testGetData()

ResourceLoaderClientHtmlTest::testGetData ( )

Definition at line 13 of file ResourceLoaderClientHtmlTest.php.

References $context, and(), and makeContext().

◆ testGetDocumentAttributes()

ResourceLoaderClientHtmlTest::testGetDocumentAttributes ( )

Definition at line 345 of file ResourceLoaderClientHtmlTest.php.

References and().

◆ testGetHeadHtml()

ResourceLoaderClientHtmlTest::testGetHeadHtml ( )

Definition at line 88 of file ResourceLoaderClientHtmlTest.php.

References $context, and(), expandVariables(), and makeContext().

◆ testGetHeadHtmlWithNullTarget()

ResourceLoaderClientHtmlTest::testGetHeadHtmlWithNullTarget ( )

Confirm that a null 'target' is the same as no target.

Definition at line 163 of file ResourceLoaderClientHtmlTest.php.

References and().

◆ testGetHeadHtmlWithSafemode()

ResourceLoaderClientHtmlTest::testGetHeadHtmlWithSafemode ( )

Confirm that 'safemode' is passed down to startup.

Definition at line 146 of file ResourceLoaderClientHtmlTest.php.

References and().

◆ testGetHeadHtmlWithTarget()

ResourceLoaderClientHtmlTest::testGetHeadHtmlWithTarget ( )

Confirm that 'target' is passed down to the startup module's load url.

Definition at line 129 of file ResourceLoaderClientHtmlTest.php.

References and().

◆ testMakeLoad()

ResourceLoaderClientHtmlTest::testMakeLoad ( array $contextQuery,
array $modules,
$type,
array $extraQuery,
$expected )

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