function MigrateDependenciesTest::testAggregatorMigrateDependencies

Same name in other branches
  1. 8.9.x core/modules/migrate_drupal/tests/src/Kernel/dependencies/MigrateDependenciesTest.php \Drupal\Tests\migrate_drupal\Kernel\dependencies\MigrateDependenciesTest::testAggregatorMigrateDependencies()

Tests dependencies on the migration of aggregator feeds & items.

File

core/modules/aggregator/tests/src/Kernel/Migrate/d6/MigrateDependenciesTest.php, line 24

Class

MigrateDependenciesTest
Ensure the consistency among the dependencies for migrate.

Namespace

Drupal\Tests\aggregator\Kernel\Migrate\d6

Code

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->assertEquals([
        new FormattableMarkup('Migration @id did not meet the requirements. Missing migrations d6_aggregator_feed. requirements: d6_aggregator_feed.', [
            '@id' => $migration->id(),
        ]),
    ], $this->migrateMessages['error']);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.