Drupal 8  8.0.2
EntityTypeBundleInfoTest Class Reference
Inheritance diagram for EntityTypeBundleInfoTest:

Public Member Functions

 testClearCachedBundles ()
 
 testGetBundleInfo ($entity_type_id, $expected)
 
 providerTestGetBundleInfo ()
 
 testGetAllBundleInfo ()
 
 testGetAllBundleInfoWithEntityBundleInfo ()
 
- 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

 $moduleHandler
 
 $cacheBackend
 
 $cacheTagsInvalidator
 
 $typedDataManager
 
 $entityTypeManager
 
 $languageManager
 
 $entityTypeBundleInfo
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Entity

Member Function Documentation

providerTestGetBundleInfo ( )

Provides test data for testGetBundleInfo().

Returns
array Test data.
setUp ( )
protected

{}

References Drupal\entityTypeManager(), Drupal\languageManager(), Drupal\moduleHandler(), Drupal\setContainer(), and Drupal\typedDataManager().

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 EntityTypeBundleInfoTest\testClearCachedBundles(), EntityTypeBundleInfoTest\testGetAllBundleInfo(), EntityTypeBundleInfoTest\testGetAllBundleInfoWithEntityBundleInfo(), and EntityTypeBundleInfoTest\testGetBundleInfo().

Here is the call graph for this function:

Here is the caller graph for this function:

testClearCachedBundles ( )

Tests the clearCachedBundles() method.

::clearCachedBundles

References EntityTypeBundleInfoTest\setUpEntityTypeDefinitions(), and Drupal\typedDataManager().

Here is the call graph for this function:

testGetAllBundleInfo ( )

Tests the getAllBundleInfo() method.

::getAllBundleInfo

References Drupal\moduleHandler(), Cache\PERMANENT, EntityTypeBundleInfoTest\setUpEntityTypeDefinitions(), and Drupal\typedDataManager().

Here is the call graph for this function:

testGetAllBundleInfoWithEntityBundleInfo ( )

::getAllBundleInfo

References Drupal\moduleHandler(), and EntityTypeBundleInfoTest\setUpEntityTypeDefinitions().

Here is the call graph for this function:

testGetBundleInfo (   $entity_type_id,
  $expected 
)

Tests the getBundleInfo() method.

::getBundleInfo

providerTestGetBundleInfo

References Drupal\moduleHandler(), and EntityTypeBundleInfoTest\setUpEntityTypeDefinitions().

Here is the call graph for this function:


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