Drupal 8  8.0.2
EntityValidationTest Class Reference
Inheritance diagram for EntityValidationTest:

Public Member Functions

 testValidation ()
 

Static Public Attributes

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

Protected Member Functions

 setUp ()
 
 createTestEntity ($entity_type)
 
 checkValidation ($entity_type)
 
- 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

 $entityName
 
 $entityUser
 
 $entityFieldText
 
- Protected Attributes inherited from EntityUnitTestBase
 $entityManager
 
 $generatedIds = array()
 
 $state
 

Detailed Description

Tests the Entity Validation API.

Entity

Member Function Documentation

checkValidation (   $entity_type)
protected

Executes the validation test set for a defined entity type.

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

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

Referenced by EntityValidationTest\testValidation().

Here is the call graph for this function:

Here is the caller graph for this function:

createTestEntity (   $entity_type)
protected

Creates a test entity.

Parameters
string$entity_typeAn entity type.
Returns
The created test entity.

References EntityUnitTestBase\createUser().

Referenced by EntityValidationTest\checkValidation().

Here is the call graph for this function:

Here is the caller graph for this function:

setUp ( )
protected

{}

testValidation ( )

Tests validating test entity types.

References EntityValidationTest\checkValidation(), and Drupal\service().

Here is the call graph for this function:


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