Drupal 8  8.0.2
EntityUnitTest Class Reference
Inheritance diagram for EntityUnitTest:

Public Member Functions

 testId ()
 
 testUuid ()
 
 testIsNew ()
 
 testGetEntityType ()
 
 testBundle ()
 
 testLabel ()
 
 testAccess ()
 
 testLanguage ()
 
 setupTestLoad ()
 
 testLoad ()
 
 testLoadMultiple ()
 
 testCreate ()
 
 testSave ()
 
 testDelete ()
 
 testGetEntityTypeId ()
 
 testPreSave ()
 
 testPostSave ()
 
 testPreCreate ()
 
 testPostCreate ()
 
 testPreDelete ()
 
 testPostDelete ()
 
 testPostLoad ()
 
 testReferencedEntities ()
 
 testCacheTags ()
 
 testCacheContexts ()
 
 testCacheMaxAge ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from UnitTestCase
 setUp ()
 
 getRandomGenerator ()
 
 assertArrayEquals (array $expected, array $actual, $message=NULL)
 
 getBlockMockWithMachineName ($machine_name)
 
 getContainerWithCacheTagsInvalidator (CacheTagsInvalidatorInterface $cache_tags_validator)
 
 getClassResolverStub ()
 

Protected Attributes

 $entity
 
 $entityType
 
 $entityManager
 
 $entityTypeId
 
 $routeProvider
 
 $uuid
 
 $languageManager
 
 $cacheTagsInvalidator
 
 $values
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Entity Access

Member Function Documentation

setUp ( )
protected

{}

References Drupal\entityManager(), Drupal\languageManager(), UnitTestCase\randomMachineName(), and Drupal\setContainer().

Here is the call graph for this function:

setupTestLoad ( )

Setup for the tests of the ::load() method.

Referenced by EntityUnitTest\testCreate(), EntityUnitTest\testLoad(), and EntityUnitTest\testLoadMultiple().

Here is the caller graph for this function:

testAccess ( )

::access

References AccessResult\allowed(), Drupal\entityManager(), and UnitTestCase\randomMachineName().

Here is the call graph for this function:

testBundle ( )

::bundle

testCacheContexts ( )

::getCacheContexts ::addCacheContexts

References Drupal\setContainer().

Here is the call graph for this function:

testCacheMaxAge ( )

::getCacheMaxAge ::mergeCacheMaxAge

References Cache\PERMANENT.

testCacheTags ( )

::getCacheTags ::getCacheTagsToInvalidate ::addCacheTags

testCreate ( )

::create

References Drupal\entityManager(), and EntityUnitTest\setupTestLoad().

Here is the call graph for this function:

testDelete ( )

::delete

References Drupal\entityManager(), and UnitTestCase\randomMachineName().

Here is the call graph for this function:

testGetEntityType ( )

::getEntityType

testGetEntityTypeId ( )

::getEntityTypeId

testId ( )

::id

testIsNew ( )

::isNew ::enforceIsNew

testLabel ( )

::label

References Drupal\entityManager(), and UnitTestCase\randomMachineName().

Here is the call graph for this function:

testLanguage ( )

::language

testLoad ( )

::load

Tests Entity::load() when called statically on a subclass of Entity.

References Drupal\entityManager(), and EntityUnitTest\setupTestLoad().

Here is the call graph for this function:

testLoadMultiple ( )

::loadMultiple

Tests Entity::loadMultiple() when called statically on a subclass of Entity.

References Drupal\entityManager(), and EntityUnitTest\setupTestLoad().

Here is the call graph for this function:

testPostCreate ( )

::postCreate

testPostDelete ( )

::postDelete

testPostLoad ( )

::postLoad

testPostSave ( )

::postSave

testPreCreate ( )

::preCreate

testPreDelete ( )

::preDelete

testPreSave ( )

::preSave

testReferencedEntities ( )

::referencedEntities

testSave ( )

::save

References Drupal\entityManager().

Here is the call graph for this function:

testUuid ( )

::uuid


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