MigrationProcessTest.php in Drupal 10
File
core/modules/migrate_drupal/tests/src/Kernel/d6/MigrationProcessTest.php
View source
<?php
namespace Drupal\Tests\migrate_drupal\Kernel\d6;
use Drupal\KernelTests\FileSystemModuleDiscoveryDataProviderTrait;
class MigrationProcessTest extends MigrateDrupal6TestBase {
use FileSystemModuleDiscoveryDataProviderTrait;
protected function setUp() : void {
self::$modules = array_keys($this
->coreModuleListDataProvider());
parent::setUp();
}
public function testGetProcess() {
$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);
}
}
}