You are here

public function FlattenTest::providerTestFlattenInvalid in Drupal 10

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

Provides data for the testFlattenInvalid.

File

core/modules/migrate/tests/src/Unit/process/FlattenTest.php, line 69

Class

FlattenTest
Tests the flatten plugin.

Namespace

Drupal\Tests\migrate\Unit\process

Code

public function providerTestFlattenInvalid() {
  $xml_str = <<<XML
<xml version='1.0'?>
<authors>
 <name>Ada Lovelace</name>
</authors>
XML;
  return [
    'empty string' => [
      '',
    ],
    'string' => [
      'Kate Sheppard',
    ],
    'integer' => [
      1,
    ],
    'float' => [
      1.2,
    ],
    'NULL' => [
      NULL,
    ],
    'boolean' => [
      TRUE,
    ],
    'xml' => [
      $xml_str,
    ],
  ];
}