You are here

public function HandleMultiplesTest::scalarAndMultipleValuesProviderSource in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/src/Kernel/process/HandleMultiplesTest.php \Drupal\Tests\migrate\Kernel\process\HandleMultiplesTest::scalarAndMultipleValuesProviderSource()

Provides the source data with scalar and multiple values.

Return value

array

File

core/modules/migrate/tests/src/Kernel/process/HandleMultiplesTest.php, line 111

Class

HandleMultiplesTest
Tests process pipelines with scalar and multiple values handling.

Namespace

Drupal\Tests\migrate\Kernel\process

Code

public function scalarAndMultipleValuesProviderSource() {
  return [
    [
      'source_data' => [
        'id' => '1',
        // Source value for the first pipeline.
        'scalar' => 'foo/bar',
        // Source value for the second pipeline.
        'multiple' => [
          'foo',
          'bar/baz',
        ],
      ],
      'expected_data' => [
        // Expected value from the first pipeline.
        'first' => 'BAR',
        // Expected value from the second pipeline.
        'second' => [
          'BAR',
          'BAZ',
        ],
      ],
    ],
  ];
}