public function CckMigrationBuilderTest::testRequirementCheck in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate_drupal/src/Tests/d6/CckMigrationBuilderTest.php \Drupal\migrate_drupal\Tests\d6\CckMigrationBuilderTest::testRequirementCheck()
Tests that the CckMigration builder performs a requirements check on the source plugin.
File
- core/
modules/ migrate_drupal/ src/ Tests/ d6/ CckMigrationBuilderTest.php, line 43 - Contains \Drupal\migrate_drupal\Tests\d6\CckMigrationBuilderTest.
Class
- CckMigrationBuilderTest
- @group migrate_drupal
Namespace
Drupal\migrate_drupal\Tests\d6Code
public function testRequirementCheck() {
$template = \Drupal::service('migrate.template_storage')
->getTemplateByName('d6_field');
// Without the requirements check, this will throw a \PDOException because
// the CCK tables do not exist.
\Drupal::service('migrate.migration_builder')
->createMigrations([
$template,
]);
}