MigrationProcessTest.php
Same filename in this branch
Same filename in other branches
- 9 core/modules/migrate_drupal/tests/src/Kernel/d6/MigrationProcessTest.php
- 9 core/modules/migrate_drupal/tests/src/Kernel/d7/MigrationProcessTest.php
- 8.9.x core/modules/migrate_drupal/tests/src/Kernel/d6/MigrationProcessTest.php
- 8.9.x core/modules/migrate_drupal/tests/src/Kernel/d7/MigrationProcessTest.php
- 10 core/modules/migrate_drupal/tests/src/Kernel/d6/MigrationProcessTest.php
- 10 core/modules/migrate_drupal/tests/src/Kernel/d7/MigrationProcessTest.php
Namespace
Drupal\Tests\migrate_drupal\Kernel\d6File
-
core/
modules/ migrate_drupal/ tests/ src/ Kernel/ d6/ MigrationProcessTest.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\migrate_drupal\Kernel\d6;
use Drupal\KernelTests\FileSystemModuleDiscoveryDataProviderTrait;
/**
* Tests the getProcess() method of all Drupal 6 migrations.
*
* @group migrate_drupal
*/
class MigrationProcessTest extends MigrateDrupal6TestBase {
use FileSystemModuleDiscoveryDataProviderTrait;
/**
* {@inheritdoc}
*/
protected function setUp() : void {
self::$modules = array_keys($this->coreModuleListDataProvider());
parent::setUp();
}
/**
* Tests that calling getProcess() on a migration does not throw an exception.
*
* @throws \Exception
*/
public function testGetProcess() : void {
/** @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);
}
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
MigrationProcessTest | Tests the getProcess() method of all Drupal 6 migrations. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.