function MigrationLookupTest::providerTestTransformWithStubbing

Same name in other branches
  1. 11.x core/modules/migrate/tests/src/Unit/process/MigrationLookupTest.php \Drupal\Tests\migrate\Unit\process\MigrationLookupTest::providerTestTransformWithStubbing()

Provides data for testTransformWithStubbing().

File

core/modules/migrate/tests/src/Unit/process/MigrationLookupTest.php, line 79

Class

MigrationLookupTest
@coversDefaultClass \Drupal\migrate\Plugin\migrate\process\MigrationLookup @group migrate

Namespace

Drupal\Tests\migrate\Unit\process

Code

public static function providerTestTransformWithStubbing() : array {
    return [
        [
            \Exception::class,
            'Oh noes!',
            'Exception was thrown while attempting to stub: Oh noes!',
        ],
        [
            MigrateSkipRowException::class,
            'Oh noes!',
            "Migration lookup for destination '' attempted to create a stub using migration destination_migration, which resulted in a row skip, with message 'Oh noes!'",
        ],
        [
            MigrateSkipRowException::class,
            '',
            "Migration lookup for destination '' attempted to create a stub using migration destination_migration, which resulted in a row skip",
        ],
    ];
}

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