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

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

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.


Member Function Documentation

assertDefaultValues (   $entity_type_id)

Executes a test set for a defined entity type.

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: