Drupal 8  8.0.2
DisplayApiTest Class Reference
Inheritance diagram for DisplayApiTest:

Public Member Functions

 testFieldItemListView ()
 
 testFieldItemView ()
 
 testFieldEmpty ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from FieldUnitTestBase
 setUp ()
 
 createFieldWithStorage ($suffix= '', $entity_type= 'entity_test', $bundle=NULL)
 
 entitySaveReload (EntityInterface $entity)
 
 entityValidateAndSave (EntityInterface $entity)
 
 _generateTestFieldValues ($cardinality)
 
 assertFieldValues (EntityInterface $entity, $field_name, $expected_values, $langcode=LanguageInterface::LANGCODE_NOT_SPECIFIED, $column= 'value')
 

Protected Attributes

 $fieldName
 
 $label
 
 $cardinality
 
 $displayOptions
 
 $entity
 
 $values
 
- Protected Attributes inherited from FieldUnitTestBase
 $fieldTestData
 

Additional Inherited Members

- Static Public Attributes inherited from FieldUnitTestBase
static $modules = ['user', 'system', 'field', 'text', 'entity_test', 'field_test']
 

Detailed Description

Tests the field display API.

field

Member Function Documentation

testFieldEmpty ( )

Tests that the prepareView() formatter method still fires for empty values.

testFieldItemListView ( )

Tests the FieldItemListInterface::view() method.

References Drupal\config(), format_string(), and Drupal\service().

Here is the call graph for this function:

testFieldItemView ( )

Tests the FieldItemInterface::view() method.

References format_string(), and Drupal\service().

Here is the call graph for this function:


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