Drupal 8  8.0.2
AccessAwareRouterTest Class Reference
Inheritance diagram for AccessAwareRouterTest:

Public Member Functions

 testMatchRequestAllowed ()
 
 testMatchRequestDenied ()
 
 testCall ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

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

 $route
 
 $chainRouter
 
 $accessManager
 
 $currentUser
 
 $router
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Routing

Member Function Documentation

setUp ( )
protected

{}

References Drupal\accessManager(), and Drupal\currentUser().

Here is the call graph for this function:

setupRouter ( )
protected

Sets up a chain router with matchRequest.

References Drupal\accessManager(), and Drupal\currentUser().

Referenced by AccessAwareRouterTest\testMatchRequestAllowed(), and AccessAwareRouterTest\testMatchRequestDenied().

Here is the call graph for this function:

Here is the caller graph for this function:

testCall ( )

Ensure that methods are passed to the wrapped router.

::__call

References Drupal\accessManager(), and Drupal\currentUser().

Here is the call graph for this function:

testMatchRequestAllowed ( )

Tests the matchRequest() function for access allowed.

References AccessAwareRouterInterface\ACCESS_RESULT, Drupal\accessManager(), AccessResult\allowed(), and AccessAwareRouterTest\setupRouter().

Here is the call graph for this function:

testMatchRequestDenied ( )

Tests the matchRequest() function for access denied.

References AccessAwareRouterInterface\ACCESS_RESULT, Drupal\accessManager(), AccessResult\forbidden(), and AccessAwareRouterTest\setupRouter().

Here is the call graph for this function:


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