Drupal 8  8.0.2
RouteSubscriberTest Class Reference
Inheritance diagram for RouteSubscriberTest:

Public Member Functions

 testRouteRebuildFinished ()
 
 testOnAlterRoutes ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
 setupMocks ()
 
- 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

 $entityManager
 
 $viewStorage
 
 $routeSubscriber
 
 $state
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

views

Member Function Documentation

setupMocks ( )
protected

Sets up mocks of Views objects needed for testing.

Returns
array []|[] An array of two mocked view displays

Referenced by RouteSubscriberTest\testOnAlterRoutes(), and RouteSubscriberTest\testRouteRebuildFinished().

Here is the caller graph for this function:

testOnAlterRoutes ( )

Tests the onAlterRoutes method.

See Also
::onAlterRoutes()

References RouteSubscriberTest\setupMocks(), and Drupal\state().

Here is the call graph for this function:

testRouteRebuildFinished ( )

::routeRebuildFinished

References RouteSubscriberTest\setupMocks(), and Drupal\state().

Here is the call graph for this function:


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