MediaWiki  master
ResourceLoaderWikiModuleTest Class Reference

ResourceLoaderWikiModule. More...

Inheritance diagram for ResourceLoaderWikiModuleTest:
Collaboration diagram for ResourceLoaderWikiModuleTest:

Public Member Functions

 tearDown ()
 
 testConstructor ( $params)
 provideConstructor More...
 
 testContentOverrides ()
 
 testGetContent ( $expected, $title)
 provideGetContent More...
 
 testGetContentForRedirects ()
 
 testGetGroup ( $params, $expected)
 provideGetGroup More...
 
 testGetPages ( $params, Config $config, $expected)
 provideGetPages More...
 
 testGetPreloadedBadTitle ()
 
 testGetPreloadedTitleInfo ()
 
 testGetPreloadedTitleInfoEmpty ()
 
 testGetTitleInfo ()
 
 testGetType ( $params, $expected)
 provideGetType More...
 
 testIsKnownEmpty ( $titleInfo, $group, $dependencies, $expected)
 provideIsKnownEmpty More...
 

Static Public Member Functions

static provideConstructor ()
 
static provideGetContent ()
 
static provideGetGroup ()
 
static provideGetPages ()
 
static provideGetType ()
 
static provideIsKnownEmpty ()
 
- Static Public Member Functions inherited from ResourceLoaderTestCase
static getMinimalConfig ()
 
static getSettings ()
 

Private Member Functions

 prepareTitleInfo (array $mockInfo)
 

Additional Inherited Members

- Public Attributes inherited from ResourceLoaderTestCase
const BLANK_VERSION = '09p30q0'
 
- Protected Member Functions inherited from ResourceLoaderTestCase
 getResourceLoaderContext ( $options=[], ResourceLoader $rl=null)
 
 setUp ()
 

Detailed Description

Member Function Documentation

◆ prepareTitleInfo()

ResourceLoaderWikiModuleTest::prepareTitleInfo ( array  $mockInfo)
private

◆ provideConstructor()

static ResourceLoaderWikiModuleTest::provideConstructor ( )
static

Definition at line 20 of file ResourceLoaderWikiModuleTest.php.

References null.

◆ provideGetContent()

static ResourceLoaderWikiModuleTest::provideGetContent ( )
static

Definition at line 312 of file ResourceLoaderWikiModuleTest.php.

References NS_MEDIAWIKI, and null.

◆ provideGetGroup()

static ResourceLoaderWikiModuleTest::provideGetGroup ( )
static

Definition at line 90 of file ResourceLoaderWikiModuleTest.php.

References null.

◆ provideGetPages()

static ResourceLoaderWikiModuleTest::provideGetPages ( )
static

Definition at line 50 of file ResourceLoaderWikiModuleTest.php.

References $params.

◆ provideGetType()

static ResourceLoaderWikiModuleTest::provideGetType ( )
static

◆ provideIsKnownEmpty()

static ResourceLoaderWikiModuleTest::provideIsKnownEmpty ( )
static

Definition at line 140 of file ResourceLoaderWikiModuleTest.php.

References null.

◆ tearDown()

ResourceLoaderWikiModuleTest::tearDown ( )

Definition at line 444 of file ResourceLoaderWikiModuleTest.php.

References Title\clearCaches().

◆ testConstructor()

ResourceLoaderWikiModuleTest::testConstructor (   $params)

provideConstructor

Definition at line 15 of file ResourceLoaderWikiModuleTest.php.

References $params, and class.

◆ testContentOverrides()

ResourceLoaderWikiModuleTest::testContentOverrides ( )

Definition at line 367 of file ResourceLoaderWikiModuleTest.php.

References $context, $t, class, Title\getPrefixedText(), and null.

◆ testGetContent()

ResourceLoaderWikiModuleTest::testGetContent (   $expected,
  $title 
)

provideGetContent

Definition at line 339 of file ResourceLoaderWikiModuleTest.php.

References $context, $title, class, ResourceLoaderTestCase\getResourceLoaderContext(), NS_MAIN, and null.

◆ testGetContentForRedirects()

ResourceLoaderWikiModuleTest::testGetContentForRedirects ( )

◆ testGetGroup()

ResourceLoaderWikiModuleTest::testGetGroup (   $params,
  $expected 
)

provideGetGroup

Definition at line 85 of file ResourceLoaderWikiModuleTest.php.

References $params.

◆ testGetPages()

ResourceLoaderWikiModuleTest::testGetPages (   $params,
Config  $config,
  $expected 
)

provideGetPages

Definition at line 39 of file ResourceLoaderWikiModuleTest.php.

References $out, $params, and ResourceLoaderContext\newDummyContext().

◆ testGetPreloadedBadTitle()

ResourceLoaderWikiModuleTest::testGetPreloadedBadTitle ( )

◆ testGetPreloadedTitleInfo()

◆ testGetPreloadedTitleInfoEmpty()

ResourceLoaderWikiModuleTest::testGetPreloadedTitleInfoEmpty ( )

◆ testGetTitleInfo()

ResourceLoaderWikiModuleTest::testGetTitleInfo ( )

Definition at line 208 of file ResourceLoaderWikiModuleTest.php.

References $context, class, and prepareTitleInfo().

◆ testGetType()

ResourceLoaderWikiModuleTest::testGetType (   $params,
  $expected 
)

provideGetType

Definition at line 98 of file ResourceLoaderWikiModuleTest.php.

References $params.

◆ testIsKnownEmpty()

ResourceLoaderWikiModuleTest::testIsKnownEmpty (   $titleInfo,
  $group,
  $dependencies,
  $expected 
)

provideIsKnownEmpty

Definition at line 125 of file ResourceLoaderWikiModuleTest.php.

References $context, class, and prepareTitleInfo().


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