Drupal 8  8.0.2
EntityTypeManagerTest Class Reference
Inheritance diagram for EntityTypeManagerTest:

Public Member Functions

 testHasHandler ($entity_type_id, $expected)
 
 providerTestHasHandler ()
 
 testGetStorage ()
 
 testGetListBuilder ()
 
 testGetViewBuilder ()
 
 testGetAccessControlHandler ()
 
 testGetFormObject ()
 
 testGetFormObjectInvalidOperation ()
 
 testGetHandler ()
 
 testGetHandlerMissingHandler ()
 
 testGetRouteProviders ()
 
 testProcessDefinition ()
 
 testGetDefinition ($entity_type_id, $expected)
 
 providerTestGetDefinition ()
 
 testGetDefinitionInvalidException ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

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

 $entityTypeManager
 
 $translationManager
 
 $discovery
 
 $moduleHandler
 
 $cacheBackend
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Entity

Member Function Documentation

getTestHandlerClass ( )
protected

Gets a mock controller class name.

Returns
string A mock controller class name.

Referenced by EntityTypeManagerTest\testGetAccessControlHandler(), EntityTypeManagerTest\testGetHandler(), EntityTypeManagerTest\testGetListBuilder(), EntityTypeManagerTest\testGetStorage(), and EntityTypeManagerTest\testGetViewBuilder().

Here is the caller graph for this function:

providerTestGetDefinition ( )

Provides test data for testGetDefinition().

Returns
array Test data.
providerTestHasHandler ( )

Provides test data for testHasHandler().

Returns
array Test data.
setUp ( )
protected

{}

References Drupal\entityTypeManager(), UnitTestCase\getClassResolverStub(), and Drupal\moduleHandler().

Here is the call graph for this function:

setUpEntityTypeDefinitions (   $definitions = [])
protected
testGetAccessControlHandler ( )

Tests the getAccessControlHandler() method.

::getAccessControlHandler

References Drupal\entityTypeManager(), EntityTypeManagerTest\getTestHandlerClass(), and EntityTypeManagerTest\setUpEntityTypeDefinitions().

Here is the call graph for this function:

testGetDefinition (   $entity_type_id,
  $expected 
)

Tests the getDefinition() method.

::getDefinition

providerTestGetDefinition

References Drupal\entityTypeManager(), and EntityTypeManagerTest\setUpEntityTypeDefinitions().

Here is the call graph for this function:

testGetDefinitionInvalidException ( )

Tests the getDefinition() method with an invalid definition.

::getDefinition

The "pear" entity type does not exist.

References Drupal\entityTypeManager(), and EntityTypeManagerTest\setUpEntityTypeDefinitions().

Here is the call graph for this function:

testGetFormObject ( )

Tests the getFormObject() method.

::getFormObject

References Drupal\entityTypeManager(), Drupal\setContainer(), and EntityTypeManagerTest\setUpEntityTypeDefinitions().

Here is the call graph for this function:

testGetFormObjectInvalidOperation ( )

Tests the getFormObject() method with an invalid operation.

::getFormObject

References Drupal\entityTypeManager(), and EntityTypeManagerTest\setUpEntityTypeDefinitions().

Here is the call graph for this function:

testGetHandler ( )

Tests the getHandler() method.

::getHandler

References Drupal\entityTypeManager(), EntityTypeManagerTest\getTestHandlerClass(), and EntityTypeManagerTest\setUpEntityTypeDefinitions().

Here is the call graph for this function:

testGetHandlerMissingHandler ( )

Tests the getHandler() method when no controller is defined.

::getHandler

References Drupal\entityTypeManager(), and EntityTypeManagerTest\setUpEntityTypeDefinitions().

Here is the call graph for this function:

testGetListBuilder ( )

Tests the getListBuilder() method.

::getListBuilder

References Drupal\entityTypeManager(), EntityTypeManagerTest\getTestHandlerClass(), and EntityTypeManagerTest\setUpEntityTypeDefinitions().

Here is the call graph for this function:

testGetRouteProviders ( )

::getRouteProviders

References Drupal\entityTypeManager(), and EntityTypeManagerTest\setUpEntityTypeDefinitions().

Here is the call graph for this function:

testGetStorage ( )

Tests the getStorage() method.

::getStorage

References Drupal\entityTypeManager(), EntityTypeManagerTest\getTestHandlerClass(), and EntityTypeManagerTest\setUpEntityTypeDefinitions().

Here is the call graph for this function:

testGetViewBuilder ( )

Tests the getViewBuilder() method.

::getViewBuilder

References Drupal\entityTypeManager(), EntityTypeManagerTest\getTestHandlerClass(), and EntityTypeManagerTest\setUpEntityTypeDefinitions().

Here is the call graph for this function:

testHasHandler (   $entity_type_id,
  $expected 
)

Tests the hasHandler() method.

::hasHandler

providerTestHasHandler

References Drupal\entityTypeManager(), and EntityTypeManagerTest\setUpEntityTypeDefinitions().

Here is the call graph for this function:

testProcessDefinition ( )

Tests the processDefinition() method.

::processDefinition

Link template 'canonical' for entity type 'apple' must start with a leading slash, the current link template is 'path/to/apple'

References Drupal\entityTypeManager(), and EntityTypeManagerTest\setUpEntityTypeDefinitions().

Here is the call graph for this function:


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