protected function MigrateEntityContentValidationTest::runImport in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php \Drupal\Tests\migrate\Kernel\MigrateEntityContentValidationTest::runImport()
- 9 core/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php \Drupal\Tests\migrate\Kernel\MigrateEntityContentValidationTest::runImport()
Runs an import of a migration.
Parameters
array $definition: The migration definition.
Throws
\Exception
\Drupal\migrate\MigrateException
File
- core/
modules/ migrate/ tests/ src/ Kernel/ MigrateEntityContentValidationTest.php, line 269
Class
- MigrateEntityContentValidationTest
- Tests validation of an entity during migration.
Namespace
Drupal\Tests\migrate\KernelCode
protected function runImport(array $definition) {
// Reset the list of messages from a previous migration.
$this->messages = [];
(new MigrateExecutable($this->container
->get('plugin.manager.migration')
->createStubMigration($definition)))
->import();
}