protected function MigrateExecutableTest::setUp in Drupal 9
Same name in this branch
- 9 core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php \Drupal\Tests\migrate\Unit\MigrateExecutableTest::setUp()
- 9 core/modules/migrate/tests/src/Kernel/MigrateExecutableTest.php \Drupal\Tests\migrate\Kernel\MigrateExecutableTest::setUp()
Same name and namespace in other branches
- 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\UnitCode
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());
}