public function MigrateDependenciesTest::testAggregatorMigrateDependencies in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/migrate_drupal/src/Tests/dependencies/MigrateDependenciesTest.php \Drupal\migrate_drupal\Tests\dependencies\MigrateDependenciesTest::testAggregatorMigrateDependencies()
Tests dependencies on the migration of aggregator feeds & items.
File
- core/
modules/ migrate_drupal/ src/ Tests/ dependencies/ MigrateDependenciesTest.php, line 69 - Contains \Drupal\migrate_drupal\Tests\dependencies\MigrateDependenciesTest.
Class
- MigrateDependenciesTest
- Ensure the consistency among the dependencies for migrate.
Namespace
Drupal\migrate_drupal\Tests\dependenciesCode
public function testAggregatorMigrateDependencies() {
/** @var \Drupal\migrate\entity\Migration $migration */
$migration = Migration::load('d6_aggregator_item');
$executable = new MigrateExecutable($migration, $this);
$this
->startCollectingMessages();
$executable
->import();
$this
->assertEqual($this->migrateMessages['error'], array(
SafeMarkup::format('Migration @id did not meet the requirements. Missing migrations d6_aggregator_feed. requirements: d6_aggregator_feed.', array(
'@id' => $migration
->id(),
)),
));
$this->collectMessages = FALSE;
}