Drupal 8  8.0.2
ContextTest Class Reference
Inheritance diagram for ContextTest:

Public Member Functions

 testDefaultValue ()
 
 testDefaultDataValue ()
 
 testNullDataValue ()
 
 testSetContextValueTypedData ()
 
 testSetContextValueCacheableDependency ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
 setUpDefaultValue ($default_value=NULL)
 
- 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

 $contextDefinition
 
 $typedDataManager
 
 $typedData
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Plugin

Member Function Documentation

setUp ( )
protected

{}

References Drupal\typedDataManager().

Here is the call graph for this function:

setUpDefaultValue (   $default_value = NULL)
protected

Set up mocks for the getDefaultValue() method call.

Parameters
mixed$default_valueThe default value to assign to the mock context definition.

References Drupal\typedDataManager().

Referenced by ContextTest\testDefaultDataValue(), ContextTest\testDefaultValue(), and ContextTest\testNullDataValue().

Here is the call graph for this function:

Here is the caller graph for this function:

testDefaultDataValue ( )

::getContextData

References ContextTest\setUpDefaultValue(), and Drupal\typedDataManager().

Here is the call graph for this function:

testDefaultValue ( )

::getContextValue

References ContextTest\setUpDefaultValue(), and Drupal\typedDataManager().

Here is the call graph for this function:

testNullDataValue ( )

::getContextData

References ContextTest\setUpDefaultValue(), and Drupal\typedDataManager().

Here is the call graph for this function:

testSetContextValueCacheableDependency ( )

::setContextValue

References Context\createFromContext(), Drupal\setContainer(), and Drupal\typedDataManager().

Here is the call graph for this function:

testSetContextValueTypedData ( )

::setContextValue


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