Drupal 8  8.0.2
EntityFieldDefaultValueTest Class Reference
Inheritance diagram for EntityFieldDefaultValueTest:

Public Member Functions

 testDefaultValues ()
 
 testDefaultValueCallback ()
 

Protected Member Functions

 setUp ()
 
 assertDefaultValues ($entity_type_id)
 
- 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

 $uuid
 
- 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 default values for entity fields.

Entity

Member Function Documentation

assertDefaultValues (   $entity_type_id)
protected

Executes a test set for a defined entity type.

Parameters
string$entity_type_idThe entity type to run the tests with.

References Drupal\entityManager().

Referenced by EntityFieldDefaultValueTest\testDefaultValues().

Here is the call graph for this function:

Here is the caller graph for this function:

testDefaultValueCallback ( )

Tests custom default value callbacks.

References Drupal\entityManager().

Here is the call graph for this function:

testDefaultValues ( )

Tests default values on entities and fields.

References EntityFieldDefaultValueTest\assertDefaultValues().

Here is the call graph for this function:


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