Drupal 8  8.0.2
ChainResponsePolicyTest Class Reference
Inheritance diagram for ChainResponsePolicyTest:

Public Member Functions

 testEmptyChain ()
 
 testNullRuleChain ()
 
 testChainExceptionOnInvalidReturnValue ($return_value)
 
 providerChainExceptionOnInvalidReturnValue ()
 
 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
 
 $response
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

PageCache

Member Function Documentation

providerChainExceptionOnInvalidReturnValue ( )

Provides test data for testChainExceptionOnInvalidReturnValue.

Returns
array Test input and expected result.
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 ResponsePolicyInterface\DENY, and Drupal\request().

Here is the call graph for this function:


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