Drupal 8  8.0.2
ConfigEntityStorageTest Class Reference
Inheritance diagram for ConfigEntityStorageTest:

Public Member Functions

 testCreateWithPredefinedUuid ()
 
 testCreate ()
 
 testCreateWithCurrentLanguage ()
 
 testCreateWithExplicitLanguage ()
 
 testSaveInsert (EntityInterface $entity)
 
 testSaveUpdate (EntityInterface $entity)
 
 testSaveRename (ConfigEntityInterface $entity)
 
 testSaveInvalid ()
 
 testSaveDuplicate ()
 
 testSaveMismatch ()
 
 testSaveNoMismatch ()
 
 testSaveChangedUuid ()
 
 testLoad ()
 
 testLoadMultipleAll ()
 
 testLoadMultipleIds ()
 
 testLoadRevision ()
 
 testDeleteRevision ()
 
 testDelete ()
 
 testDeleteNothing ()
 
 getMockEntity (array $values=array(), $methods=array())
 
- 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

 $entityType
 
 $entityTypeId
 
 $moduleHandler
 
 $uuidService
 
 $languageManager
 
 $entityStorage
 
 $configFactory
 
 $entityQuery
 
 $entityManager
 
 $cacheTagsInvalidator
 
 $typedConfigManager
 
 $configManager
 
 $cacheContextsManager
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Config

Member Function Documentation

getMockEntity ( array  $values = array(),
  $methods = array() 
)

Creates an entity with specific methods mocked.

Parameters
array$values(optional) Values to pass to the constructor.
array$methods(optional) The methods to mock.
Returns
|

Referenced by ConfigEntityStorageTest\setUp(), ConfigEntityStorageTest\testDelete(), ConfigEntityStorageTest\testSaveChangedUuid(), ConfigEntityStorageTest\testSaveDuplicate(), ConfigEntityStorageTest\testSaveInvalid(), ConfigEntityStorageTest\testSaveMismatch(), and ConfigEntityStorageTest\testSaveNoMismatch().

Here is the caller graph for this function:

setUp ( )
protected

{}

::__construct

References Drupal\configFactory(), Drupal\entityManager(), Drupal\entityQuery(), ConfigEntityStorageTest\getMockEntity(), Drupal\languageManager(), Drupal\moduleHandler(), and Drupal\setContainer().

Here is the call graph for this function:

testCreate ( )

::create ::doCreate

Returns

References Drupal\moduleHandler().

Here is the call graph for this function:

testCreateWithCurrentLanguage ( )

::create ::doCreate

References Drupal\languageManager().

Here is the call graph for this function:

testCreateWithExplicitLanguage ( )

::create ::doCreate

References Drupal\languageManager().

Here is the call graph for this function:

testCreateWithPredefinedUuid ( )

::create ::doCreate

References Drupal\moduleHandler().

Here is the call graph for this function:

testDelete ( )

::delete ::doDelete

References Drupal\configFactory(), ConfigEntityStorageTest\getMockEntity(), and Drupal\moduleHandler().

Here is the call graph for this function:

testDeleteNothing ( )

::delete ::doDelete

References Drupal\configFactory(), and Drupal\moduleHandler().

Here is the call graph for this function:

testDeleteRevision ( )

::deleteRevision

testLoad ( )

::load ::postLoad ::mapFromStorageRecords ::doLoadMultiple

References Drupal\configFactory(), Drupal\moduleHandler(), and Cache\PERMANENT.

Here is the call graph for this function:

testLoadMultipleAll ( )

::loadMultiple ::postLoad ::mapFromStorageRecords ::doLoadMultiple

References Drupal\configFactory(), Drupal\moduleHandler(), and Cache\PERMANENT.

Here is the call graph for this function:

testLoadMultipleIds ( )

::loadMultiple ::postLoad ::mapFromStorageRecords ::doLoadMultiple

References Drupal\configFactory(), Drupal\moduleHandler(), and Cache\PERMANENT.

Here is the call graph for this function:

testLoadRevision ( )

::loadRevision

testSaveChangedUuid ( )

::save ::doSave

when this entity already exists with UUID

References Drupal\configFactory(), Drupal\entityQuery(), ConfigEntityStorageTest\getMockEntity(), Drupal\moduleHandler(), and Cache\PERMANENT.

Here is the call graph for this function:

testSaveDuplicate ( )

::save ::doSave

References Drupal\configFactory(), and ConfigEntityStorageTest\getMockEntity().

Here is the call graph for this function:

testSaveInsert ( EntityInterface  $entity)

::save ::doSave

Parameters
\Drupal\Core\Entity\EntityInterface$entity
Returns

testCreate

References Drupal\configFactory(), Drupal\entityQuery(), and Drupal\moduleHandler().

Here is the call graph for this function:

testSaveInvalid ( )

::save

The entity does not have an ID.

References ConfigEntityStorageTest\getMockEntity().

Here is the call graph for this function:

testSaveMismatch ( )

::save ::doSave

when this UUID is already used for

References Drupal\configFactory(), Drupal\entityQuery(), and ConfigEntityStorageTest\getMockEntity().

Here is the call graph for this function:

testSaveNoMismatch ( )

::save ::doSave

References Drupal\configFactory(), Drupal\entityQuery(), and ConfigEntityStorageTest\getMockEntity().

Here is the call graph for this function:

testSaveRename ( ConfigEntityInterface  $entity)

::save ::doSave

testSaveInsert

References Drupal\configFactory(), Drupal\entityQuery(), EntityInterface\getOriginalId(), EntityInterface\id(), and ConfigEntityInterface\set().

Here is the call graph for this function:

testSaveUpdate ( EntityInterface  $entity)

::save ::doSave

Parameters
\Drupal\Core\Entity\EntityInterface$entity
Returns

testSaveInsert

References Drupal\configFactory(), Drupal\entityQuery(), EntityInterface\id(), and Drupal\moduleHandler().

Here is the call graph for this function:


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