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


Detailed Description

Tests .


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

Member Function Documentation

convertBuiltMenuToIdTree ( array  $build)

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

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

array$buildThe return value of MenuLinkTree::build()
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 ( )


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

The menu link plugin manager service.

Initial value:
= array(

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