Drupal 8  8.0.2
FieldStorageCrudTest Class Reference
Inheritance diagram for FieldStorageCrudTest:

Public Member Functions

 testCreate ()
 
 testCreateWithExplicitSchema ()
 
 testRead ()
 
 testIndexes ()
 
 testDelete ()
 
 testUpdateFieldType ()
 
 testUpdate ()
 
 testUpdateForbid ()
 

Static Public Attributes

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

Additional Inherited Members

- 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 inherited from FieldUnitTestBase
 $fieldTestData
 

Detailed Description

Tests field storage create, read, update, and delete.

field

Member Function Documentation

testCreate ( )

Test the creation of a field storage.

References Drupal\config(), Entity\load(), Drupal\service(), and t().

Here is the call graph for this function:

testCreateWithExplicitSchema ( )

Tests that an explicit schema can be provided on creation.

This behavior is needed to allow field storage creation within updates, since plugin classes (and thus the field type schema) cannot be accessed.

testDelete ( )

Test the deletion of a field storage.

References Entity\load(), and FieldStorageConfig\loadByName().

Here is the call graph for this function:

testIndexes ( )

Test creation of indexes on data column.

References Entity\load().

Here is the call graph for this function:

testRead ( )

Tests reading field storage definitions.

testUpdate ( )

Test updating a field storage.

testUpdateForbid ( )

Test field type modules forbidding an update.

References t().

Here is the call graph for this function:


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