function MigrateEntityContentValidationTest::setUp

Same name in other branches
  1. 8.9.x core/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php \Drupal\Tests\migrate\Kernel\MigrateEntityContentValidationTest::setUp()
  2. 10 core/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php \Drupal\Tests\migrate\Kernel\MigrateEntityContentValidationTest::setUp()
  3. 11.x 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 49

Class

MigrateEntityContentValidationTest
Tests validation of an entity during migration.

Namespace

Drupal\Tests\migrate\Kernel

Code

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

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