function MigrateDependenciesTest::testAggregatorMigrateDependencies
Same name in other branches
- 9 core/modules/aggregator/tests/src/Kernel/Migrate/d6/MigrateDependenciesTest.php \Drupal\Tests\aggregator\Kernel\Migrate\d6\MigrateDependenciesTest::testAggregatorMigrateDependencies()
Tests dependencies on the migration of aggregator feeds & items.
File
-
core/
modules/ migrate_drupal/ tests/ src/ Kernel/ dependencies/ MigrateDependenciesTest.php, line 97
Class
- MigrateDependenciesTest
- Ensure the consistency among the dependencies for migrate.
Namespace
Drupal\Tests\migrate_drupal\Kernel\dependenciesCode
public function testAggregatorMigrateDependencies() {
/** @var \Drupal\migrate\Plugin\Migration $migration */
$migration = $this->getMigration('d6_aggregator_item');
$executable = new MigrateExecutable($migration, $this);
$this->startCollectingMessages();
$executable->import();
$this->assertEqual($this->migrateMessages['error'], [
new FormattableMarkup('Migration @id did not meet the requirements. Missing migrations d6_aggregator_feed. requirements: d6_aggregator_feed.', [
'@id' => $migration->id(),
]),
]);
$this->collectMessages = FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.