function MigrationPluginManagerTest::providerCreateInstanceByTag

Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/src/Kernel/MigrationPluginManagerTest.php \Drupal\Tests\migrate\Kernel\MigrationPluginManagerTest::providerCreateInstanceByTag()
  2. 11.x core/modules/migrate/tests/src/Kernel/MigrationPluginManagerTest.php \Drupal\Tests\migrate\Kernel\MigrationPluginManagerTest::providerCreateInstanceByTag()

Data provider for testCreateInstancesByTag.

File

core/modules/migrate/tests/src/Kernel/MigrationPluginManagerTest.php, line 57

Class

MigrationPluginManagerTest
Tests the migration plugin manager.

Namespace

Drupal\Tests\migrate\Kernel

Code

public static function providerCreateInstanceByTag() {
  return [
    'get test' => [
      'test',
      [
        'tag_test_0',
        'tag_test_1',
      ],
    ],
    'get tag_test_1' => [
      'tag_test_1',
      [
        'tag_test_1',
      ],
    ],
    'get no tags' => [
      '',
      [],
    ],
  ];
}

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