You are here

protected function MigrateEntityContentValidationTest::setUp in Drupal 8

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

Overrides KernelTestBase::setUp

File

core/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php, line 33

Class

MigrateEntityContentValidationTest
Tests validation of an entity during migration.

Namespace

Drupal\Tests\migrate\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'system',
    'user',
  ]);
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('entity_test');
  $this->container
    ->get('event_dispatcher')
    ->addListener(MigrateEvents::IDMAP_MESSAGE, [
    $this,
    'mapMessageRecorder',
  ]);
}