Drupal 8  8.0.2
ContextualLinkManagerTest Class Reference
Inheritance diagram for ContextualLinkManagerTest:

Public Member Functions

 testGetContextualLinkPluginsByGroup ()
 
 testGetContextualLinkPluginsByGroupWithCache ()
 
 testProcessDefinitionWithoutRoute ()
 
 testProcessDefinitionWithoutGroup ()
 
 testGetContextualLinksArrayByGroup ()
 
 testGetContextualLinksArrayByGroupAccessCheck ()
 
 testPluginDefinitionAlter ()
 
- 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

 $contextualLinkManager
 
 $controllerResolver
 
 $pluginDiscovery
 
 $factory
 
 $cacheBackend
 
 $moduleHandler
 
 $accessManager
 
 $account
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Menu

Member Function Documentation

testGetContextualLinkPluginsByGroup ( )

Tests the getContextualLinkPluginsByGroup method.

See Also
::getContextualLinkPluginsByGroup()
testGetContextualLinkPluginsByGroupWithCache ( )

Tests the getContextualLinkPluginsByGroup method with a prefilled cache.

testGetContextualLinksArrayByGroup ( )

Tests the getContextualLinksArrayByGroup method.

See Also
::getContextualLinksArrayByGroup()

References Drupal\accessManager(), AccessResult\allowed(), and Drupal\moduleHandler().

Here is the call graph for this function:

testGetContextualLinksArrayByGroupAccessCheck ( )

Tests the access checking of the getContextualLinksArrayByGroup method.

See Also
::getContextualLinksArrayByGroup()

References Drupal\accessManager().

Here is the call graph for this function:

testPluginDefinitionAlter ( )

Tests the plugins alter hook.

References Drupal\moduleHandler().

Here is the call graph for this function:

testProcessDefinitionWithoutGroup ( )

Tests processDefinition() by passing a plugin definition without a group.

See Also
::processDefinition()
testProcessDefinitionWithoutRoute ( )

Tests processDefinition() by passing a plugin definition without a route.

See Also
::processDefinition()

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