Drupal 8  8.0.2
BlockPageVariantTest Class Reference
Inheritance diagram for BlockPageVariantTest:

Public Member Functions

 setUpDisplayVariant ($configuration=array(), $definition=array())
 
 providerBuild ()
 
 testBuild (array $blocks_config, $visible_block_count, array $expected_render_array)
 
 testBuildWithoutMainContent ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Attributes

 $blockRepository
 
 $blockViewBuilder
 
 $contextHandler
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Additional Inherited Members

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

Detailed Description

block

Member Function Documentation

setUpDisplayVariant (   $configuration = array(),
  $definition = array() 
)

Sets up a display variant plugin for testing.

Parameters
array$configurationAn array of plugin configuration.
array$definitionThe plugin definition array.
Returns
| A mocked display variant plugin.

References Drupal\setContainer().

Referenced by BlockPageVariantTest\testBuild(), and BlockPageVariantTest\testBuildWithoutMainContent().

Here is the call graph for this function:

Here is the caller graph for this function:

testBuild ( array  $blocks_config,
  $visible_block_count,
array  $expected_render_array 
)

Tests the building of a full page variant.

::build

providerBuild

References BlockPageVariantTest\setUpDisplayVariant().

Here is the call graph for this function:

testBuildWithoutMainContent ( )

Tests the building of a full page variant with no main content set.

::build

References BlockPageVariantTest\setUpDisplayVariant().

Here is the call graph for this function:


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