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
 $entityManager
 
 $generatedIds = array()
 
 $state
 

Detailed Description

Tests entity level validation constraints.

Entity

Member Function Documentation

setUp ( )
protected

{}

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: