MediaWiki  master
ResourceLoaderImageModuleTest Class Reference

ResourceLoader. More...

Inheritance diagram for ResourceLoaderImageModuleTest:
Collaboration diagram for ResourceLoaderImageModuleTest:

Public Member Functions

 testContext ()
 ResourceLoaderContext::getImageObj. More...
 
 testGetStyleDeclarations ( $dataUriReturnValue, $expected)
 providerGetStyleDeclarations ResourceLoaderImageModule::getStyleDeclarations More...
 
 testGetStyles ( $module, $expected)
 providerGetModules ResourceLoaderImageModule::getStyles More...
 

Static Public Member Functions

static static static providerGetModules ()
 
static providerGetStyleDeclarations ()
 
- Static Public Member Functions inherited from ResourceLoaderTestCase
static getMinimalConfig ()
 
static getSettings ()
 

Static Public Attributes

static $commonImageData
 
static static $commonImageVariants
 

Private Member Functions

 getImageMock (ResourceLoaderContext $context, $dataUriReturnValue)
 

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

ResourceLoader.

Definition at line 8 of file ResourceLoaderImageModuleTest.php.

Member Function Documentation

◆ getImageMock()

ResourceLoaderImageModuleTest::getImageMock ( ResourceLoaderContext  $context,
  $dataUriReturnValue 
)
private

Definition at line 241 of file ResourceLoaderImageModuleTest.php.

References $image, class, and null.

Referenced by testGetStyleDeclarations().

◆ providerGetModules()

static static static ResourceLoaderImageModuleTest::providerGetModules ( )
static

Definition at line 58 of file ResourceLoaderImageModuleTest.php.

References class.

◆ providerGetStyleDeclarations()

static ResourceLoaderImageModuleTest::providerGetStyleDeclarations ( )
static

Definition at line 203 of file ResourceLoaderImageModuleTest.php.

References data.

◆ testContext()

ResourceLoaderImageModuleTest::testContext ( )

◆ testGetStyleDeclarations()

ResourceLoaderImageModuleTest::testGetStyleDeclarations (   $dataUriReturnValue,
  $expected 
)

◆ testGetStyles()

ResourceLoaderImageModuleTest::testGetStyles (   $module,
  $expected 
)

Member Data Documentation

◆ $commonImageData

ResourceLoaderImageModuleTest::$commonImageData
static
Initial value:
= [
'abc' => 'abc.gif'

Definition at line 10 of file ResourceLoaderImageModuleTest.php.

Referenced by ResourceLoaderImageTest\getTestImage().

◆ $commonImageVariants

static ResourceLoaderImageModuleTest::$commonImageVariants
static
Initial value:
= [
'invert' => [
'color' => '#FFFFFF'

Definition at line 42 of file ResourceLoaderImageModuleTest.php.


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