You are here

public function MigrateInterruptionTest::setUp in Zircon Profile 8

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

Performs setup tasks before each individual test method is run.

Overrides KernelTestBase::setUp

File

core/modules/migrate/src/Tests/MigrateInterruptionTest.php, line 35
Contains \Drupal\migrate\Tests\MigrateInterruptionTest.

Class

MigrateInterruptionTest
Tests interruptions triggered during migrations.

Namespace

Drupal\migrate\Tests

Code

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