function MigrateLookupTest::providerExceptionOnMultipleMigrationsNotFound

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Unit/MigrateLookupTest.php \Drupal\Tests\migrate\Unit\MigrateLookupTest::providerExceptionOnMultipleMigrationsNotFound()
  2. 11.x core/modules/migrate/tests/src/Unit/MigrateLookupTest.php \Drupal\Tests\migrate\Unit\MigrateLookupTest::providerExceptionOnMultipleMigrationsNotFound()

Provides data for testExceptionOnMultipleMigrationsNotFound.

File

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

Class

MigrateLookupTest
Provides unit testing for the migration lookup service.

Namespace

Drupal\Tests\migrate\Unit

Code

public static function providerExceptionOnMultipleMigrationsNotFound() {
    return [
        'array two items' => [
            [
                'foo',
                'bar',
            ],
            "Plugin IDs 'foo', 'bar' were not found.",
        ],
        'empty array' => [
            [],
            "Plugin IDs '' were not found.",
        ],
    ];
}

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