Drupal 8  8.0.2
EntityTypeConstraintsTest Class Reference
Inheritance diagram for EntityTypeConstraintsTest:

Public Member Functions

 testConstraintDefinition ()
 testConstraintValidation ()

Protected Member Functions

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

Additional Inherited Members

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

Detailed Description

Tests entity level validation constraints.


Member Function Documentation

setUp ( )


testConstraintDefinition ( )

Tests defining entity constraints via entity type annotations and hooks.

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

Here is the call graph for this function:

testConstraintValidation ( )

Tests entity constraints are validated.

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

Here is the call graph for this function:

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