You are here

public function NodeImportUpdateExportTest::nodeImportUpdateExportDataProvider in Acquia Content Hub 8.2

Data provider for testNodeImportUpdateExport.

Return value

array Data provider for testNodeImportUpdateExport.

File

tests/src/Kernel/NodeImportUpdateExportTest.php, line 113

Class

NodeImportUpdateExportTest
Tests importing and exporting nodes.

Namespace

Drupal\Tests\acquia_contenthub\Kernel

Code

public function nodeImportUpdateExportDataProvider() {
  $export_uuid = [
    '5d1ba3c3-d527-4328-8fce-a6b714c5ef79',
    '40253012-2a03-47c1-86b8-87e4d0adf091',
  ];
  if (version_compare(\Drupal::VERSION, '8.8.0', '<')) {
    $export_uuid = [
      '38f023d8-b0d8-4e8c-9c06-8b547d8a0a85',
      '1264093e-bdad-41a7-a059-1904a5e6d8d6',
    ];
  }
  return [
    [
      0,
      1,
      [
        [
          'type' => 'node',
          'uuid' => $export_uuid[0],
        ],
      ],
      'node',
      $export_uuid[0],
    ],
    [
      2,
      3,
      [
        [
          'type' => 'node',
          'uuid' => $export_uuid[1],
        ],
      ],
      'node',
      $export_uuid[1],
    ],
  ];
}