Drupal 8  8.0.2
CsrfAccessCheckTest Class Reference
Inheritance diagram for CsrfAccessCheckTest:

Public Member Functions

 testAccessTokenPass ()
 
 testAccessTokenFail ()
 
- 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

 $csrfToken
 
 $accessCheck
 
 $routeMatch
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Access

Member Function Documentation

testAccessTokenFail ( )

Tests the access() method with an invalid token.

References Drupal\csrfToken(), AccessResult\forbidden(), and Drupal\routeMatch().

Here is the call graph for this function:

testAccessTokenPass ( )

Tests the access() method with a valid token.

References AccessResult\allowed(), Drupal\csrfToken(), and Drupal\routeMatch().

Here is the call graph for this function:


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