You are here

protected function MigrateExecutableTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 50
Contains \Drupal\Tests\migrate\Unit\MigrateExecutableTest.

Class

MigrateExecutableTest
@coversDefaultClass \Drupal\Tests\migrate\Unit\MigrateExecutableTest @group migrate

Namespace

Drupal\Tests\migrate\Unit

Code

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