function EntityRevisionTest::getEntityRevisionDestination
Helper method to create an entity revision destination with mock services.
Parameters
array $configuration: Configuration for the destination.
string $plugin_id: The plugin id.
array $plugin_definition: The plugin definition.
Return value
\Drupal\Tests\migrate\Unit\destination\EntityRevision Mocked destination.
See also
\Drupal\Tests\migrate\Unit\Destination\EntityRevision
5 calls to EntityRevisionTest::getEntityRevisionDestination()
- EntityRevisionTest::testGetEntityDestinationValues in core/modules/ migrate/ tests/ src/ Unit/ destination/ EntityRevisionTest.php 
- Tests that passed old destination values are used by default.
- EntityRevisionTest::testGetEntityLoadFailure in core/modules/ migrate/ tests/ src/ Unit/ destination/ EntityRevisionTest.php 
- Tests entity load failure.
- EntityRevisionTest::testGetEntityNewRevision in core/modules/ migrate/ tests/ src/ Unit/ destination/ EntityRevisionTest.php 
- Tests that new revisions are flagged to be written as new.
- EntityRevisionTest::testGetEntityUpdateRevision in core/modules/ migrate/ tests/ src/ Unit/ destination/ EntityRevisionTest.php 
- Tests that revision updates update.
- EntityRevisionTest::testSave in core/modules/ migrate/ tests/ src/ Unit/ destination/ EntityRevisionTest.php 
- Tests entity revision save.
File
- 
              core/modules/ migrate/ tests/ src/ Unit/ destination/ EntityRevisionTest.php, line 214 
Class
- EntityRevisionTest
- Tests entity revision destination.
Namespace
Drupal\Tests\migrate\Unit\destinationCode
protected function getEntityRevisionDestination(array $configuration = [], $plugin_id = 'entity_revision', array $plugin_definition = []) {
  return new EntityRevision($configuration, $plugin_id, $plugin_definition, $this->migration, $this->storage
    ->reveal(), [], $this->entityFieldManager, $this->fieldTypeManager, $this->accountSwitcher, $this->entityTypeBundle);
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
