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

 $fieldStorage
 
 $fieldStorageDefinition
 
 $fieldDefinition
 
- 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

Create field entities by attaching fields to entities.

field

Member Function Documentation

doFieldValidationTests ( )
protected

Tests configurable field validation.

See Also
field_test_entity_bundle_field_info_alter()

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: