Drupal 8  8.0.2
EntityApiTest Class Reference
Inheritance diagram for EntityApiTest:

Public Member Functions

 testCRUD ()
 testEntityStorageExceptionHandling ()

Protected Member Functions

 setUp ()
 assertCRUD ($entity_type, UserInterface $user1)
- 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 basic CRUD functionality.


Member Function Documentation

assertCRUD (   $entity_type,
UserInterface  $user1 

Executes a test set for a defined entity type and user.

string$entity_typeThe entity type to run the tests with.
\Drupal\user\UserInterface$user1The user to run the tests with.

References db_query(), Drupal\entityManager(), and format_string().

Referenced by EntityApiTest\testCRUD().

Here is the call graph for this function:

Here is the caller graph for this function:

setUp ( )


testCRUD ( )

Tests basic CRUD functionality of the Entity API.

References EntityApiTest\assertCRUD(), and EntityUnitTestBase\createUser().

Here is the call graph for this function:

testEntityStorageExceptionHandling ( )

Tests that exceptions are thrown when saving or deleting an entity.

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