You are here

public function MigrationGroupTest::testDefaultGroup in Migrate Plus 8.5

Same name and namespace in other branches
  1. 8.4 tests/src/Kernel/MigrationGroupTest.php \Drupal\Tests\migrate_plus\Kernel\MigrationGroupTest::testDefaultGroup()

Test that migrations without a group are assigned to the default group.

File

tests/src/Kernel/MigrationGroupTest.php, line 133

Class

MigrationGroupTest
Test migration groups.

Namespace

Drupal\Tests\migrate_plus\Kernel

Code

public function testDefaultGroup() : void {
  $this
    ->installConfig('migrate_plus_test');

  /** @var \Drupal\migrate\Plugin\MigrationPluginManagerInterface $pluginManager */
  $pluginManager = \Drupal::service('plugin.manager.migration');
  $migration = $pluginManager
    ->getDefinition('dummy');
  $this
    ->assertEqual($migration['migration_group'], 'default', 'Migrations without an explicit group are assigned the default group.');
}