You are here

public function TermImportExportTest::termImportExportDataProvider in Acquia Content Hub 8.2

Data provider for testTermImportExport.

Return value

array Test data sets.

File

tests/src/Kernel/TermImportExportTest.php, line 68

Class

TermImportExportTest
Taxonomy term export and import test.

Namespace

Drupal\Tests\acquia_contenthub\Kernel

Code

public function termImportExportDataProvider() {
  $export_uuid = '40253012-2a03-47c1-86b8-87e4d0adf091';
  if (version_compare(\Drupal::VERSION, '8.8.0', '<')) {
    $export_uuid = '1264093e-bdad-41a7-a059-1904a5e6d8d6';
  }
  return [
    [
      0,
      [
        [
          'type' => 'node',
          'uuid' => $export_uuid,
        ],
        [
          'type' => 'taxonomy_term',
          'uuid' => '20b902fa-e233-4cfc-9012-6824a1d256ea',
        ],
        [
          'type' => 'taxonomy_term',
          'uuid' => 'e07f1e2a-83ec-44ba-b874-9cbb00140675',
        ],
        [
          'type' => 'taxonomy_term',
          'uuid' => '17ce8cc4-edfe-4ca7-809d-93abaf09960c',
        ],
      ],
      'node',
      $export_uuid,
    ],
    [
      1,
      [
        [
          'type' => 'taxonomy_term',
          'uuid' => 'ccd971d2-d5fa-41af-b9ce-fdee956f3c08',
        ],
      ],
      'taxonomy_term',
      'ccd971d2-d5fa-41af-b9ce-fdee956f3c08',
    ],
  ];
}