You are here

public function ExtractTest::providerTestExtractInvalid in Drupal 9

Provides data for the testExtractInvalid.

File

core/modules/migrate/tests/src/Unit/process/ExtractTest.php, line 141

Class

ExtractTest
@coversDefaultClass \Drupal\migrate\Plugin\migrate\process\Extract @group migrate

Namespace

Drupal\Tests\migrate\Unit\process

Code

public function providerTestExtractInvalid() {
  $xml_str = <<<XML
    <xml version='1.0'?>
      <authors>
        <name>Test Extract Invalid</name>
      </authors>
XML;
  $object = (object) [
    'one' => 'test1',
    'two' => 'test2',
    'three' => 'test3',
  ];
  return [
    'empty string' => [
      '',
    ],
    'string' => [
      'Extract Test',
    ],
    'integer' => [
      1,
    ],
    'float' => [
      1.0,
    ],
    'NULL' => [
      NULL,
    ],
    'boolean' => [
      TRUE,
    ],
    'xml' => [
      $xml_str,
    ],
    'object' => [
      $object,
    ],
  ];
}