Drupal 8  8.0.2
FieldAttachStorageTest Class Reference
Inheritance diagram for FieldAttachStorageTest:

Public Member Functions

 testFieldAttachSaveLoad ()
 
 testFieldAttachLoadMultiple ()
 
 testFieldAttachSaveEmptyData ()
 
 testFieldAttachSaveEmptyDataDefaultValue ()
 
 testFieldAttachDelete ()
 
 testEntityCreateBundle ()
 
 testEntityDeleteBundle ()
 

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')
 

Additional Inherited Members

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

Detailed Description

Tests storage-related Field Attach API functions.

field

Todo:
move this to the Entity module

Member Function Documentation

testEntityCreateBundle ( )

Test entity_bundle_create().

testEntityDeleteBundle ( )

Test entity_bundle_delete().

testFieldAttachDelete ( )

Test entity deletion.

testFieldAttachLoadMultiple ( )

Test the 'multiple' load feature.

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

Here is the call graph for this function:

testFieldAttachSaveEmptyData ( )

Tests insert and update with empty or NULL fields.

testFieldAttachSaveEmptyDataDefaultValue ( )

Test insert with empty or NULL fields, with default value.

testFieldAttachSaveLoad ( )

Check field values insert, update and load.

Works independently of the underlying field storage backend. Inserts or updates random field data and then loads and verifies the data.

References FieldUnitTestBase\_generateTestFieldValues(), and FieldUnitTestBase\createFieldWithStorage().

Here is the call graph for this function:


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