function MigrateExecutableTest::setUp

Overrides UnitTestCase::setUp

File

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

Class

MigrateExecutableTest
@coversDefaultClass \Drupal\migrate\MigrateExecutable[[api-linebreak]] @group migrate

Namespace

Drupal\Tests\migrate\Unit

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.