Drupal 8  8.0.2
FieldSqlStorageTest Class Reference
Inheritance diagram for FieldSqlStorageTest:

Public Member Functions

 testFieldLoad ()
 
 testFieldWrite ()
 
 testLongNames ()
 
 testUpdateFieldSchemaWithData ()
 
 testFieldUpdateFailure ()
 
 testFieldUpdateIndexesWithData ()
 
 testFieldSqlStorageForeignKeys ()
 
 testTableNames ()
 

Static Public Attributes

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

Protected Attributes

 $fieldName
 
 $fieldCardinality
 
 $fieldStorage
 
 $field
 
 $table
 
 $revisionTable
 
 $tableMapping
 
- Protected Attributes inherited from EntityUnitTestBase
 $entityManager
 
 $generatedIds = array()
 
 $state
 

Additional Inherited Members

- Protected Member Functions inherited from EntityUnitTestBase
 setUp ()
 
 createUser ($values=array(), $permissions=array())
 
 reloadEntity (EntityInterface $entity)
 
 getHooksInfo ()
 
 installModule ($module)
 
 uninstallModule ($module)
 
 refreshServices ()
 
 generateRandomEntityId ($string=FALSE)
 

Detailed Description

Tests Field SQL Storage .

Field_sql_storage.module implements the default back-end storage plugin for the Field Storage API.

Entity

Member Function Documentation

testFieldLoad ( )

Tests field loading works correctly by inserting directly in the tables.

References db_insert().

Here is the call graph for this function:

testFieldSqlStorageForeignKeys ( )

Test foreign key support.

testFieldUpdateFailure ( )

Test that failure to create fields is handled gracefully.

References db_table_exists(), and t().

Here is the call graph for this function:

testFieldUpdateIndexesWithData ( )

Test adding and removing indexes while data is present.

References t().

Here is the call graph for this function:

testFieldWrite ( )

Tests field saving works correctly by reading directly from the tables.

testLongNames ( )

Tests that long entity type and field names do not break.

testTableNames ( )

Tests table name generation.

testUpdateFieldSchemaWithData ( )

Test trying to update a field with data.

References t().

Here is the call graph for this function:


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