Drupal 8  8.0.2
ThemeHandlerTest Class Reference
Inheritance diagram for ThemeHandlerTest:

Public Member Functions

 testRebuildThemeData ()
 
 testRebuildThemeDataWithThemeParents ()
 
 testGetBaseThemes (array $themes, $theme, array $expected)
 
 providerTestGetBaseThemes ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from UnitTestCase
 setUp ()
 
 getRandomGenerator ()
 
 assertArrayEquals (array $expected, array $actual, $message=NULL)
 
 getBlockMockWithMachineName ($machine_name)
 
 getContainerWithCacheTagsInvalidator (CacheTagsInvalidatorInterface $cache_tags_validator)
 
 getClassResolverStub ()
 

Protected Attributes

 $infoParser
 
 $state
 
 $configFactory
 
 $moduleHandler
 
 $extensionDiscovery
 
 $themeHandler
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Extension

Member Function Documentation

providerTestGetBaseThemes ( )

Provides test data for testGetBaseThemes.

Returns
array An array of theme test data.
setUp ( )
protected

{}

References Drupal\configFactory(), UnitTestCase\getConfigFactoryStub(), UnitTestCase\getContainerWithCacheTagsInvalidator(), Drupal\moduleHandler(), Drupal\root(), and Drupal\state().

Here is the call graph for this function:

testGetBaseThemes ( array  $themes,
  $theme,
array  $expected 
)

Tests getting the base themes for a set a defines themes.

Parameters
array$themesAn array of available themes, keyed by the theme name.
string$themeThe theme name to find all its base themes.
array$expectedThe expected base themes.

providerTestGetBaseThemes

testRebuildThemeData ( )

Tests rebuilding the theme data.

See Also
::rebuildThemeData()

References Drupal\moduleHandler(), and Drupal\root().

Here is the call graph for this function:

testRebuildThemeDataWithThemeParents ( )

Tests rebuild the theme data with theme parents.

References Drupal\moduleHandler(), and Drupal\root().

Here is the call graph for this function:


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