Drupal 8  8.0.2
EntityRevisionTest Class Reference
Inheritance diagram for EntityRevisionTest:

Public Member Functions

 testGetEntityDestinationValues ()
 
 testGetEntityUpdateRevision ()
 
 testGetEntityNewRevision ()
 
 testGetEntityLoadFailure ()
 
 testSave ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
 getEntityRevisionDestination (array $configuration=[], $plugin_id= 'entity_revision', array $plugin_definition=[])
 
- 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

 $migration
 
 $storage
 
 $entityManager
 
 $fieldTypeManager
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Tests entity revision destination.

migrate

Member Function Documentation

getEntityRevisionDestination ( array  $configuration = [],
  $plugin_id = 'entity_revision',
array  $plugin_definition = [] 
)
protected

Helper method to create an entity revision destination with mock services.

See Also
Parameters
$configurationConfiguration for the destination.
string$plugin_idThe plugin id.
array$plugin_definitionThe plugin definition.
Returns
Mocked destination.

References Drupal\entityManager().

Referenced by EntityRevisionTest\testGetEntityDestinationValues(), EntityRevisionTest\testGetEntityLoadFailure(), EntityRevisionTest\testGetEntityNewRevision(), EntityRevisionTest\testGetEntityUpdateRevision(), and EntityRevisionTest\testSave().

Here is the call graph for this function:

Here is the caller graph for this function:

testGetEntityDestinationValues ( )

Test that passed old destination values are used by default.

::getEntity

References EntityRevisionTest\getEntityRevisionDestination().

Here is the call graph for this function:

testGetEntityLoadFailure ( )

Test entity load failure.

::getEntity

References EntityRevisionTest\getEntityRevisionDestination().

Here is the call graph for this function:

testGetEntityNewRevision ( )

Test that new revisions are flagged to be written as new.

::getEntity

References EntityRevisionTest\getEntityRevisionDestination().

Here is the call graph for this function:

testGetEntityUpdateRevision ( )

Test that revision updates update.

::getEntity

References EntityRevisionTest\getEntityRevisionDestination().

Here is the call graph for this function:

testSave ( )

Test entity revision save.

::save

References EntityRevisionTest\getEntityRevisionDestination().

Here is the call graph for this function:


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