Drupal 8  8.0.2
DenyNodePreviewTest Class Reference
Inheritance diagram for DenyNodePreviewTest:

Public Member Functions

 testPrivateImageStyleDownloadPolicy ($expected_result, $route_name)
 
 providerPrivateImageStyleDownloadPolicy ()
 
- 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
 
 $routeMatch
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

node

Member Function Documentation

providerPrivateImageStyleDownloadPolicy ( )

Provides data and expected results for the test method.

Returns
array Data and expected results.

References ResponsePolicyInterface\DENY.

testPrivateImageStyleDownloadPolicy (   $expected_result,
  $route_name 
)

Asserts that caching is denied on the node preview route.

providerPrivateImageStyleDownloadPolicy ::check

References Drupal\request(), and Drupal\routeMatch().

Here is the call graph for this function:


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