Drupal 8  8.0.2
RoleAccessCheckTest Class Reference
Inheritance diagram for RoleAccessCheckTest:

Public Member Functions

 roleAccessProvider ()
 
 testRoleAccess ($path, $grant_accounts, $deny_accounts)
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 getTestRouteCollection ()
 
- Protected Member Functions inherited from UnitTestCase
 setUp ()
 
 getRandomGenerator ()
 
 assertArrayEquals (array $expected, array $actual, $message=NULL)
 
 getBlockMockWithMachineName ($machine_name)
 
 getContainerWithCacheTagsInvalidator (CacheTagsInvalidatorInterface $cache_tags_validator)
 
 getClassResolverStub ()
 

Additional Inherited Members

- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Access Route

Member Function Documentation

getTestRouteCollection ( )
protected

Generates the test route collection.

Returns
Returns the test route collection.

Referenced by RoleAccessCheckTest\testRoleAccess().

Here is the caller graph for this function:

roleAccessProvider ( )

Provides data for the role access test.

See Also
::testRoleAccess
testRoleAccess (   $path,
  $grant_accounts,
  $deny_accounts 
)

Tests role requirements on routes.

Parameters
string$pathThe path to check access for.
array$grant_accountsA list of accounts which should have access to the given path.
array$deny_accountsA list of accounts which should not have access to the given path.
See Also
::getTestRouteCollection
::roleAccessProvider

roleAccessProvider

References AccessResult\allowed(), RoleAccessCheckTest\getTestRouteCollection(), AccessResult\neutral(), and Drupal\setContainer().

Here is the call graph for this function:


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