function SubProcessTest::providerTestNotFoundSubProcess

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

Data provider for testNotFoundSubProcess().

File

core/modules/migrate/tests/src/Unit/process/SubProcessTest.php, line 176

Class

SubProcessTest
Tests the sub_process process plugin.

Namespace

Drupal\Tests\migrate\Unit\process

Code

public static function providerTestNotFoundSubProcess() {
    return [
        'no key' => [
            'process_configuration' => [
                'process' => [
                    'foo' => 'source_foo',
                ],
                'key' => '@id',
            ],
        ],
        'lookup returns NULL' => [
            'process_configuration' => [
                'process' => [
                    'foo' => 'source_foo',
                    'id' => 'source_id',
                ],
                'key' => '@id',
            ],
        ],
    ];
}

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