Drupal 8  8.0.2
CacheContextOptimizationTest Class Reference
Inheritance diagram for CacheContextOptimizationTest:

Public Member Functions

 testUserPermissionCacheContextOptimization ()
 
 testUserRolesCacheContextOptimization ()
 

Static Public Attributes

static $modules = ['user', 'system']
 

Protected Member Functions

 setUp ()
 

Detailed Description

Tests the cache context optimization.

Render

Member Function Documentation

setUp ( )
protected

{}

testUserPermissionCacheContextOptimization ( )

Ensures that 'user.permissions' cache context is able to define cache tags.

References Entity\load(), and Drupal\service().

Here is the call graph for this function:

testUserRolesCacheContextOptimization ( )

Ensures that 'user.roles' still works when it is optimized away.

References Drupal\service().

Here is the call graph for this function:


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