Drupal 8  8.0.2
ModuleRouteSubscriberTest Class Reference
Inheritance diagram for ModuleRouteSubscriberTest:

Public Member Functions

 testRemoveRoute ($route_name, array $requirements, $removed)
 providerTestRemoveRoute ()
- 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

- Protected Attributes inherited from UnitTestCase

Detailed Description


Member Function Documentation

providerTestRemoveRoute ( )

Data provider for testRemoveRoute().

testRemoveRoute (   $route_name,
array  $requirements,

Tests that removeRoute() removes routes when the module is not enabled.

providerTestRemoveRoute ::onAlterRoutes

string$route_nameThe machine name for the route.
array$requirementsAn array of requirements to use for the route.
bool$removedWhether or not the route is expected to be removed from the collection.

References Drupal\moduleHandler().

Here is the call graph for this function:

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