Drupal 8  8.0.2
EntityTypeRepositoryTest Class Reference
Inheritance diagram for EntityTypeRepositoryTest:

Public Member Functions

 testGetEntityTypeLabels ()
 
 testGetEntityTypeFromClass ()
 
 testGetEntityTypeFromClassNoMatch ()
 
 testGetEntityTypeFromClassAmbiguous ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
 setUpEntityTypeDefinitions ($definitions=[])
 
- 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

 $entityTypeRepository
 
 $entityTypeManager
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Entity

Member Function Documentation

setUp ( )
protected

{}

References Drupal\entityTypeManager().

Here is the call graph for this function:

setUpEntityTypeDefinitions (   $definitions = [])
protected

Sets up the entity type manager to be tested.

Parameters
\Drupal\Core\Entity\EntityTypeInterface[]|\Prophecy\Prophecy\ProphecyInterface[]$definitions (optional) An array of entity type definitions.

References Drupal\entityTypeManager().

Referenced by EntityTypeRepositoryTest\testGetEntityTypeFromClass(), EntityTypeRepositoryTest\testGetEntityTypeFromClassAmbiguous(), EntityTypeRepositoryTest\testGetEntityTypeFromClassNoMatch(), and EntityTypeRepositoryTest\testGetEntityTypeLabels().

Here is the call graph for this function:

Here is the caller graph for this function:

testGetEntityTypeFromClass ( )

::getEntityTypeFromClass

References EntityTypeRepositoryTest\setUpEntityTypeDefinitions().

Here is the call graph for this function:

testGetEntityTypeFromClassAmbiguous ( )

::getEntityTypeFromClass

Multiple entity types found for .

References EntityTypeRepositoryTest\setUpEntityTypeDefinitions().

Here is the call graph for this function:

testGetEntityTypeFromClassNoMatch ( )

::getEntityTypeFromClass

The class does not correspond to an entity type.

References EntityTypeRepositoryTest\setUpEntityTypeDefinitions().

Here is the call graph for this function:

testGetEntityTypeLabels ( )

Tests the getEntityTypeLabels() method.

::getEntityTypeLabels

References EntityTypeRepositoryTest\setUpEntityTypeDefinitions().

Here is the call graph for this function:


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