Drupal 8  8.0.2
EntityTest Class Reference
Inheritance diagram for EntityTest:

Public Member Functions

 providerTestTokens ()
 
 testRenderWithIdAndToken ($token, $id)
 
 testRenderWithUuid ()
 
 testCalculateDependenciesWithPlaceholder ($token, $id)
 
 testCalculateDependenciesWithUuid ()
 
 testCalculateDependenciesWithEntityId ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
 setupEntityManager ()
 
- 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

 $entityHandler
 
 $entityManager
 
 $entityStorage
 
 $entityViewBuilder
 
 $executable
 
 $display
 
 $stylePlugin
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Entity

Member Function Documentation

providerTestTokens ( )

Data provider for testing different types of tokens.

Returns
array
setUp ( )
protected

{}

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

Here is the call graph for this function:

setupEntityManager ( )
protected

Ensures that the entity manager returns an entity storage.

References Drupal\entityManager().

Referenced by EntityTest\testCalculateDependenciesWithEntityId(), EntityTest\testCalculateDependenciesWithPlaceholder(), EntityTest\testCalculateDependenciesWithUuid(), EntityTest\testRenderWithIdAndToken(), and EntityTest\testRenderWithUuid().

Here is the call graph for this function:

Here is the caller graph for this function:

testCalculateDependenciesWithEntityId ( )

::calculateDependencies

References Drupal\entityManager(), and EntityTest\setupEntityManager().

Here is the call graph for this function:

testCalculateDependenciesWithPlaceholder (   $token,
  $id 
)

::calculateDependencies

providerTestTokens

References EntityTest\setupEntityManager().

Here is the call graph for this function:

testCalculateDependenciesWithUuid ( )

::calculateDependencies

References Drupal\entityManager(), and EntityTest\setupEntityManager().

Here is the call graph for this function:

testRenderWithIdAndToken (   $token,
  $id 
)

::render ::defineOptions ::init

providerTestTokens

References EntityTest\setupEntityManager().

Here is the call graph for this function:

testRenderWithUuid ( )

::render ::defineOptions ::init

References Drupal\entityManager(), and EntityTest\setupEntityManager().

Here is the call graph for this function:


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