Drupal 8  8.0.2
TypedDataTest Class Reference
Inheritance diagram for TypedDataTest:

Public Member Functions

 testGetAndSet ()
 
 testTypedDataLists ()
 
 testTypedDataListsFilter ()
 
 testTypedDataMaps ()
 
 testTypedDataValidation ()
 

Static Public Attributes

static $modules = array('system', 'field', 'file', 'user')
 

Protected Member Functions

 setUp ()
 
 createTypedData ($definition, $value=NULL, $name=NULL)
 

Protected Attributes

 $typedDataManager
 

Detailed Description

Tests the functionality of all core data types.

TypedData

Member Function Documentation

createTypedData (   $definition,
  $value = NULL,
  $name = NULL 
)
protected

Creates a typed data object and ensures it implements TypedDataInterface.

See Also
::create().

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

Referenced by TypedDataTest\testGetAndSet(), TypedDataTest\testTypedDataLists(), TypedDataTest\testTypedDataListsFilter(), and TypedDataTest\testTypedDataMaps().

Here is the call graph for this function:

Here is the caller graph for this function:

testGetAndSet ( )

Tests the basics around constructing and working with typed data objects.

References DateTimePlus\createFromTimestamp(), TypedDataTest\createTypedData(), file_unmanaged_copy(), and Drupal\root().

Here is the call graph for this function:

testTypedDataLists ( )

Tests using typed data lists.

References ListDataDefinition\create(), and TypedDataTest\createTypedData().

Here is the call graph for this function:

testTypedDataListsFilter ( )

Tests the filter() method on typed data lists.

References ListDataDefinition\create(), and TypedDataTest\createTypedData().

Here is the call graph for this function:

testTypedDataMaps ( )

Tests using a typed data map.

References MapDataDefinition\create(), DataDefinition\create(), and TypedDataTest\createTypedData().

Here is the call graph for this function:

testTypedDataValidation ( )

Tests typed data validation.

References DataDefinition\create(), BaseFieldDefinition\create(), t(), and Drupal\typedDataManager().

Here is the call graph for this function:


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