Drupal 8  8.0.2
FieldCrudTest Class Reference
Inheritance diagram for FieldCrudTest:

Public Member Functions

 setUp ()
 testCreateFieldCustomStorage ()
 testReadField ()
 testUpdateField ()
 testDeleteField ()
 testDeleteFieldCrossDeletion ()

Protected Member Functions

 doFieldValidationTests ()
- 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

- Protected Attributes inherited from FieldUnitTestBase

Additional Inherited Members

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

Detailed Description

Create field entities by attaching fields to entities.


Member Function Documentation

doFieldValidationTests ( )

Tests configurable field validation.

See Also

References t().

Here is the call graph for this function:

testCreateFieldCustomStorage ( )

Test creating a field with custom storage set.

References Entity\create(), Drupal\database(), Drupal\entityManager(), Drupal\state(), and Unicode\strtolower().

Here is the call graph for this function:

testDeleteField ( )

Test the deletion of a field.

testDeleteFieldCrossDeletion ( )

Tests the cross deletion behavior between field storages and fields.

testReadField ( )

Test reading back a field definition.

testUpdateField ( )

Test the update of a field.

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