Drupal 8  8.0.2
SystemMenuBlockTest Class Reference
Inheritance diagram for SystemMenuBlockTest:

Public Member Functions

 testSystemMenuBlockConfigDependencies ()
 
 testConfigLevelDepth ()
 

Static Public Attributes

static $modules
 

Protected Member Functions

 setUp ()
 
 convertBuiltMenuToIdTree (array $build)
 

Protected Attributes

 $block
 
 $menu
 
 $linkTree
 
 $menuLinkManager
 
 $blockManager
 

Detailed Description

Tests .

Block

Todo:
Expand test coverage to all SystemMenuBlock functionality, including block_menu_delete().
See Also

Member Function Documentation

convertBuiltMenuToIdTree ( array  $build)
protected

Helper method to allow for easy menu link tree structure assertions.

Converts the result of MenuLinkTree::build() in a "menu link ID tree".

Parameters
array$buildThe return value of MenuLinkTree::build()
Returns
array The "menu link ID tree" representation of the given render array.

References Element\children().

Referenced by SystemMenuBlockTest\testConfigLevelDepth().

Here is the call graph for this function:

Here is the caller graph for this function:

setUp ( )
protected

{}

References MenuLinkMock\create(), and Entity\create().

Here is the call graph for this function:

testConfigLevelDepth ( )

Tests the config start level and depth.

References SystemMenuBlockTest\convertBuiltMenuToIdTree(), format_string(), and Drupal\service().

Here is the call graph for this function:

testSystemMenuBlockConfigDependencies ( )

Tests calculation of a system menu block's configuration dependencies.

Field Documentation

Drupal Core Menu MenuLinkManagerInterface $menuLinkManager
protected

The menu link plugin manager service.

$modules
static
Initial value:
= array(
'system',
'block',
'menu_test',
'menu_link_content',
'field',
'user',
'link',
)

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