You are here

public function MigrateLookupTest::providerExceptionOnMigrationNotFound in Drupal 9

Provides data for testExceptionOnMigrationNotFound.

File

core/modules/migrate/tests/src/Unit/MigrateLookupTest.php, line 67

Class

MigrateLookupTest
Provides unit testing for the migration lookup service.

Namespace

Drupal\Tests\migrate\Unit

Code

public function providerExceptionOnMigrationNotFound() {
  return [
    'string' => [
      'bad_plugin',
      "Plugin ID 'bad_plugin' was not found.",
    ],
    'array one item' => [
      [
        'bad_plugin',
      ],
      "Plugin ID 'bad_plugin' was not found.",
    ],
  ];
}