Drupal 8  8.0.2
EntitySchemaTest Class Reference
Inheritance diagram for EntitySchemaTest:

Public Member Functions

 testEntitySchemaUpdate ()
 
 testModifyingTranslatableColumnSchema ()
 
 testCleanUpStorageDefinition ()
 

Protected Member Functions

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

Protected Attributes

 $database
 
- Protected Attributes inherited from EntityUnitTestBase
 $entityManager
 
 $generatedIds = array()
 
 $state
 

Additional Inherited Members

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

Detailed Description

Tests adding a custom bundle field.

system

Member Function Documentation

refreshServices ( )
protected

{}

References Drupal\database().

Here is the call graph for this function:

setUp ( )
protected

{}

References Drupal\database().

Here is the call graph for this function:

testCleanUpStorageDefinition ( )

Tests fields from an uninstalled module are removed from the schema.

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

Here is the call graph for this function:

testEntitySchemaUpdate ( )

Tests that entity schema responds to changes in the entity type definition.

References Drupal\database(), Drupal\entityManager(), SafeMarkup\format(), EntityUnitTestBase\installModule(), and EntitySchemaTest\updateEntityType().

Here is the call graph for this function:

testModifyingTranslatableColumnSchema ( )

Tests that modifying the UUID field for a translatable entity works.

References Drupal\entityManager(), EntityUnitTestBase\installModule(), and EntitySchemaTest\updateEntityType().

Here is the call graph for this function:

updateEntityType (   $alter)
protected

Updates the entity type definition.

Parameters
bool$alterWhether the original definition should be altered or not.

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

Referenced by EntitySchemaTest\testEntitySchemaUpdate(), and EntitySchemaTest\testModifyingTranslatableColumnSchema().

Here is the call graph for this function:

Here is the caller graph for this function:


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