Drupal 8  8.0.2
ChainRequestPolicyTest Class Reference
Inheritance diagram for ChainRequestPolicyTest:

Public Member Functions

 testEmptyChain ()
 
 testNullRuleChain ()
 
 testChainExceptionOnInvalidReturnValue ($return_value)
 
 providerChainExceptionOnInvalidReturnValue ()
 
 testAllowIfAnyRuleReturnedAllow ($return_values)
 
 providerAllowIfAnyRuleReturnedAllow ()
 
 testStopChainOnFirstDeny ()
 
- 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

 $policy
 
 $request
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

PageCache

Member Function Documentation

providerAllowIfAnyRuleReturnedAllow ( )

Provides test data for testAllowIfAnyRuleReturnedAllow.

Returns
array Test input and expected result.

References RequestPolicyInterface\ALLOW.

providerChainExceptionOnInvalidReturnValue ( )

Provides test data for testChainExceptionOnInvalidReturnValue.

Returns
array Test input and expected result.
testAllowIfAnyRuleReturnedAllow (   $return_values)

Asserts that check() returns ALLOW if any of the rules returns ALLOW.

providerAllowIfAnyRuleReturnedAllow ::check

References RequestPolicyInterface\ALLOW, and Drupal\request().

Here is the call graph for this function:

testChainExceptionOnInvalidReturnValue (   $return_value)

Asserts that check() throws an exception if a rule returns an invalid value.

providerChainExceptionOnInvalidReturnValue ::check

References Drupal\request().

Here is the call graph for this function:

testEmptyChain ( )

Asserts that check() returns NULL if the chain is empty.

::check

References Drupal\request().

Here is the call graph for this function:

testNullRuleChain ( )

Asserts that check() returns NULL if a rule returns NULL.

::check

References Drupal\request().

Here is the call graph for this function:

testStopChainOnFirstDeny ( )

Asserts that check() returns immediately when a rule returned DENY.

References RequestPolicyInterface\ALLOW, RequestPolicyInterface\DENY, and Drupal\request().

Here is the call graph for this function:


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