Drupal 8  8.0.2
ContextTypedDataTest Class Reference
Inheritance diagram for ContextTypedDataTest:

Public Member Functions

 testGetContextValue ()
 
 getCanonicalRepresentation ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from UnitTestCase
 setUp ()
 
 getRandomGenerator ()
 
 assertArrayEquals (array $expected, array $actual, $message=NULL)
 
 getBlockMockWithMachineName ($machine_name)
 
 getContainerWithCacheTagsInvalidator (CacheTagsInvalidatorInterface $cache_tags_validator)
 
 getClassResolverStub ()
 

Detailed Description

Tests that contexts work properly with the typed data manager.

Context

Member Function Documentation

getCanonicalRepresentation ( )

Helper mock callback to return the typed data value.

testGetContextValue ( )

Tests that getting a context value does not throw fatal errors.

This test ensures that the typed data manager is set correctly on the Context class.

::getContextValue

References DataDefinition\create(), and Drupal\setContainer().

Here is the call graph for this function:


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