You are here

public function GetTest::integerValuesDataProvider in Drupal 8

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

Provides data for the successful lookup test.

Return value

array

File

core/modules/migrate/tests/src/Unit/process/GetTest.php, line 98

Class

GetTest
Tests the get process plugin.

Namespace

Drupal\Tests\migrate\Unit\process

Code

public function integerValuesDataProvider() {
  return [
    [
      'source' => [
        0 => 0,
        1 => 'test',
      ],
      'expected_value' => [
        0 => 'val1',
        1 => 'val2',
      ],
    ],
    [
      'source' => [
        FALSE,
      ],
      'expected_value' => [
        NULL,
      ],
    ],
    [
      'source' => [
        NULL,
      ],
      'expected_value' => [
        NULL,
      ],
    ],
  ];
}