function MenuLinkParentTest::providerConstructorException

Provides data for testConstructorException().

File

core/modules/migrate/tests/src/Unit/process/MenuLinkParentTest.php, line 106

Class

MenuLinkParentTest
Tests the menu link parent process plugin.

Namespace

Drupal\Tests\migrate\Unit\process

Code

public static function providerConstructorException() : array {
    return [
        'default configuration is valid' => [
            'configuration' => [],
            'is_valid' => TRUE,
        ],
        'lookup_migrations = null is valid' => [
            'configuration' => [
                'lookup_migrations' => NULL,
            ],
            'is_valid' => TRUE,
        ],
        'bypass migration lookup is valid' => [
            'configuration' => [
                'lookup_migrations' => [],
            ],
            'is_valid' => TRUE,
        ],
        'a list of migrations is valid' => [
            'configuration' => [
                'lookup_migrations' => [
                    'this_migration',
                    'another_migration',
                ],
            ],
            'is_valid' => TRUE,
        ],
        'a single string is not valid' => [
            'configuration' => [
                'lookup_migrations' => 'this_migration',
            ],
            'is_valid' => FALSE,
        ],
    ];
}

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