Drupal 8  8.0.2
BlockRepositoryTest Class Reference
Inheritance diagram for BlockRepositoryTest:

Public Member Functions

 testGetVisibleBlocksPerRegion (array $blocks_config, array $expected_blocks)
 
 providerBlocksConfig ()
 
 testGetVisibleBlocksPerRegionWithContext ()
 
- 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

 $blockRepository
 
 $blockStorage
 
 $theme
 
 $contextHandler
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

block

Member Function Documentation

setUp ( )
protected

{}

References UnitTestCase\randomMachineName(), and Drupal\theme().

Here is the call graph for this function:

testGetVisibleBlocksPerRegion ( array  $blocks_config,
array  $expected_blocks 
)

Tests the retrieval of block entities.

::getVisibleBlocksPerRegion

providerBlocksConfig

References Drupal\theme().

Here is the call graph for this function:

testGetVisibleBlocksPerRegionWithContext ( )

Tests the retrieval of block entities that are context-aware.

::getVisibleBlocksPerRegion

References AccessResult\allowed(), and Drupal\theme().

Here is the call graph for this function:


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