You are here

protected function MigrateInterruptionTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/src/Kernel/MigrateInterruptionTest.php \Drupal\Tests\migrate\Kernel\MigrateInterruptionTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/migrate/tests/src/Kernel/MigrateInterruptionTest.php, line 28

Class

MigrateInterruptionTest
Tests interruptions triggered during migrations.

Namespace

Drupal\Tests\migrate\Kernel

Code

protected function setUp() {
  parent::setUp();
  \Drupal::service('event_dispatcher')
    ->addListener(MigrateEvents::POST_ROW_SAVE, [
    $this,
    'postRowSaveEventRecorder',
  ]);
}