function SubProcessWithSkipTest::providerTestSubProcessSkip

Same name and namespace in other branches
  1. 11.x core/modules/migrate/tests/src/Kernel/process/SubProcessWithSkipTest.php \Drupal\Tests\migrate\Kernel\process\SubProcessWithSkipTest::providerTestSubProcessSkip()

Data provider for testNotFoundSubProcess().

Return value

array

File

core/modules/migrate/tests/src/Kernel/process/SubProcessWithSkipTest.php, line 114

Class

SubProcessWithSkipTest
Tests process pipelines when a sub_process skips a row or process.

Namespace

Drupal\Tests\migrate\Kernel\process

Code

public static function providerTestSubProcessSkip() : array {
  return [
    'skip row' => [
      'method' => 'row',
      'expected_data' => [
        'first' => 'something outside of sub_process',
        'second' => [
          [
            'prop_1' => 'bar',
            'prop_2' => 'bar',
          ],
        ],
      ],
    ],
    'skip process' => [
      'method' => 'process',
      'expected_data' => [
        'first' => 'something outside of sub_process',
        'second' => [
          [
            'prop_1' => 'bar',
            'prop_2' => 'bar',
          ],
          [
            'prop_2' => 'baz',
          ],
        ],
      ],
    ],
  ];
}

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