You are here

protected function MigrateExecutableTest::setUp in Drupal 9

Same name in this branch
  1. 9 core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php \Drupal\Tests\migrate\Unit\MigrateExecutableTest::setUp()
  2. 9 core/modules/migrate/tests/src/Kernel/MigrateExecutableTest.php \Drupal\Tests\migrate\Kernel\MigrateExecutableTest::setUp()
Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php \Drupal\Tests\migrate\Unit\MigrateExecutableTest::setUp()

Overrides UnitTestCase::setUp

File

core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php, line 51

Class

MigrateExecutableTest
@coversDefaultClass \Drupal\migrate\MigrateExecutable @group migrate

Namespace

Drupal\Tests\migrate\Unit

Code

protected function setUp() : void {
  parent::setUp();
  $this->migration = $this
    ->getMigration();
  $this->message = $this
    ->createMock('Drupal\\migrate\\MigrateMessageInterface');
  $event_dispatcher = $this
    ->createMock('Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface');
  $this->executable = new TestMigrateExecutable($this->migration, $this->message, $event_dispatcher);
  $this->executable
    ->setStringTranslation($this
    ->getStringTranslationStub());
}