protected function MigrateEntityContentValidationTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php \Drupal\Tests\migrate\Kernel\MigrateEntityContentValidationTest::setUp()
- 9 core/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php \Drupal\Tests\migrate\Kernel\MigrateEntityContentValidationTest::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\KernelCode
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',
]);
}