public function MigrationProcessTest::testGetProcess in Drupal 10
Same name in this branch
- 10 core/modules/migrate_drupal/tests/src/Kernel/d6/MigrationProcessTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\MigrationProcessTest::testGetProcess()
- 10 core/modules/migrate_drupal/tests/src/Kernel/d7/MigrationProcessTest.php \Drupal\Tests\migrate_drupal\Kernel\d7\MigrationProcessTest::testGetProcess()
Same name and namespace in other branches
- 8 core/modules/migrate_drupal/tests/src/Kernel/d6/MigrationProcessTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\MigrationProcessTest::testGetProcess()
- 9 core/modules/migrate_drupal/tests/src/Kernel/d6/MigrationProcessTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\MigrationProcessTest::testGetProcess()
Tests that calling getProcess() on a migration does not throw an exception.
Throws
\Exception
File
- core/
modules/ migrate_drupal/ tests/ src/ Kernel/ d6/ MigrationProcessTest.php, line 29
Class
- MigrationProcessTest
- Tests the getProcess() method of all Drupal 6 migrations.
Namespace
Drupal\Tests\migrate_drupal\Kernel\d6Code
public function testGetProcess() {
/** @var \Drupal\migrate\Plugin\MigrationPluginManagerInterface $plugin_manager */
$plugin_manager = $this->container
->get('plugin.manager.migration');
$migrations = $plugin_manager
->createInstancesByTag('Drupal 6');
foreach ($migrations as $migration) {
try {
$process = $migration
->getProcess();
} catch (\Exception $e) {
$this
->fail(sprintf("Migration %s process failed with error: %s", $migration
->label(), $e
->getMessage()));
}
$this
->assertNotNull($process);
}
}