function MigrationLookupTest::skipInvalidDataProvider

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

Provides data for the SkipInvalid test.

Return value

array Empty values.

File

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

Class

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

Namespace

Drupal\Tests\migrate\Unit\process

Code

public static function skipInvalidDataProvider() {
    return [
        'Empty String' => [
            '',
        ],
        'Boolean False' => [
            FALSE,
        ],
        'Empty Array' => [
            [],
        ],
        'Null' => [
            NULL,
        ],
    ];
}

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