You are here

public function EntityRevisionTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php \Drupal\Tests\migrate\Unit\destination\EntityRevisionTest::setUp()

Overrides UnitTestCase::setUp

File

core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php, line 44
Contains \Drupal\Tests\migrate\Unit\destination\EntityRevisionTest.

Class

EntityRevisionTest
Tests entity revision destination.

Namespace

Drupal\Tests\migrate\Unit\destination

Code

public function setUp() {
  parent::setUp();

  // Setup mocks to be used when creating a revision destination.
  $this->migration = $this
    ->prophesize('\\Drupal\\migrate\\Entity\\MigrationInterface');
  $this->storage = $this
    ->prophesize('\\Drupal\\Core\\Entity\\EntityStorageInterface');
  $this->entityManager = $this
    ->prophesize('\\Drupal\\Core\\Entity\\EntityManagerInterface');
  $this->fieldTypeManager = $this
    ->prophesize('\\Drupal\\Core\\Field\\FieldTypePluginManagerInterface');
}