You are here

protected function MigrateNodeCompleteTest::expectedRevisionEntityData in Drupal 8

Same name in this branch
  1. 8 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeCompleteTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeCompleteTest::expectedRevisionEntityData()
  2. 8 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeCompleteTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeCompleteTest::expectedRevisionEntityData()
Same name and namespace in other branches
  1. 9 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeCompleteTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeCompleteTest::expectedRevisionEntityData()

Provides the expected node_field_revision table.

Return value

array Selected properties and fields on the revision.

File

core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeCompleteTest.php, line 974

Class

MigrateNodeCompleteTest
Test class for a complete node migration for Drupal 7.

Namespace

Drupal\Tests\node\Kernel\Migrate\d7

Code

protected function expectedRevisionEntityData() {
  return [
    $revision_data = [
      // Node 1, revision 1, en.
      0 => [
        'log' => NULL,
        'field_text_long_plain' => NULL,
        'revision_created' => '1529615790',
      ],
      // Node 2, revision 2, en.
      1 => [
        'log' => 'DS9 1st rev',
        'field_text_long_plain' => 'DS9 1st rev',
        'revision_created' => '1564543588',
      ],
      // Node 2, revision 3, en.
      2 => [
        'log' => 'is - DS9 1st rev',
        'field_text_long_plain' => 'DS9 1st rev',
        'revision_created' => '1564543677',
      ],
      // Node 2, revision 3, is.
      3 => [
        'log' => 'is - DS9 1st rev',
        'field_text_long_plain' => 'is - DS9 1st rev',
        'revision_created' => '1564543677',
      ],
      // Node 4, revision 4, is.
      4 => [
        'log' => 'is - Firefly 1st rev',
        'field_text_long_plain' => NULL,
        'revision_created' => '1478755274',
      ],
      // Node 4, revision 5, en.
      5 => [
        'log' => 'Firefly 1st rev',
        'field_text_long_plain' => NULL,
        'revision_created' => '1564543887',
      ],
      // Node 4, revision 5, is.
      6 => [
        'log' => 'Firefly 1st rev',
        'field_text_long_plain' => NULL,
        'revision_created' => '1564543887',
      ],
      // Node 6, revision 6, en.
      7 => [
        'log' => NULL,
        'field_text_long_plain' => NULL,
        'revision_created' => '1504715414',
      ],
      // Node 7, revision 7, en.
      8 => [
        'log' => NULL,
        'field_text_long_plain' => NULL,
        'revision_created' => '1504715432',
      ],
      // Node 8, revision 8, en.
      9 => [
        'log' => NULL,
        'field_text_long_plain' => NULL,
        'revision_created' => '1552126247',
      ],
      // Node 8, revision 9, en.
      10 => [
        'log' => NULL,
        'field_text_long_plain' => NULL,
        'revision_created' => '1552126296',
      ],
      // Node 8, revision 9, fr.
      11 => [
        'log' => NULL,
        'field_text_long_plain' => NULL,
        'revision_created' => '1552126296',
      ],
      // Node 8, revision 10, en.
      12 => [
        'log' => NULL,
        'field_text_long_plain' => NULL,
        'revision_created' => '1552126363',
      ],
      // Node 8, revision 10, fr.
      13 => [
        'log' => NULL,
        'field_text_long_plain' => NULL,
        'revision_created' => '1552126363',
      ],
      // Node 8, revision 10, is.
      14 => [
        'log' => NULL,
        'field_text_long_plain' => NULL,
        'revision_created' => '1552126363',
      ],
      // Node 2, revision 11, en.
      15 => [
        'log' => 'DS9 2nd rev',
        'field_text_long_plain' => NULL,
        'revision_created' => '1564543637',
      ],
      // Node 2, revision 11, is.
      16 => [
        'log' => 'DS9 2nd rev',
        'field_text_long_plain' => NULL,
        'revision_created' => '1564543637',
      ],
      // Node 2, revision 12, en.
      17 => [
        'log' => 'is - DS9 2nd rev',
        'field_text_long_plain' => NULL,
        'revision_created' => '1564543706',
      ],
      // Node 2, revision 12, is.
      18 => [
        'log' => 'is - DS9 2nd rev',
        'field_text_long_plain' => NULL,
        'revision_created' => '1564543706',
      ],
      // Node 4, revision 13, en.
      19 => [
        'log' => 'is - Firefly 2nd rev',
        'field_text_long_plain' => NULL,
        'revision_created' => '1564543810',
      ],
      // Node 4, revision 13, is.
      20 => [
        'log' => 'is - Firefly 2nd rev',
        'field_text_long_plain' => NULL,
        'revision_created' => '1564543810',
      ],
      // Node 4, revision 14, en.
      21 => [
        'log' => 'Firefly 2nd rev',
        'field_text_long_plain' => NULL,
        'revision_created' => '1564543929',
      ],
      // Node 4, revision 14, is.
      22 => [
        'log' => 'Firefly 2nd rev',
        'field_text_long_plain' => NULL,
        'revision_created' => '1564543929',
      ],
      // Node 11, revision 15, en.
      23 => [
        'log' => NULL,
        'body' => '1st',
        'field_tree' => 'lancewood',
        'revision_created' => '1568261523',
      ],
      // Node 11, revision 16, en.
      24 => [
        'log' => NULL,
        'body' => '1st',
        'field_tree' => 'lancewood',
        'revision_created' => '1568261548',
      ],
      // Node 11, revision 16, is.
      25 => [
        'log' => NULL,
        'body' => '1st',
        'field_tree' => 'is - lancewood',
        'revision_created' => '1568261548',
      ],
      // Node 11, revision 17, en.
      26 => [
        'log' => '2nd',
        'body' => '2nd',
        'field_tree' => 'lancewood',
        'revision_created' => '1568261548',
      ],
      // Node 11, revision 17, is.
      27 => [
        'log' => '2nd',
        'body' => '2nd',
        'field_tree' => 'is - lancewood',
        'revision_created' => '1568261548',
      ],
      // Node 11, revision 18, en.
      28 => [
        'log' => NULL,
        'body' => '2nd',
        'field_tree' => 'lancewood',
        'revision_created' => '1568261548',
      ],
      // Node 11, revision 18, f5.
      29 => [
        'log' => NULL,
        'body' => '2nd',
        'field_tree' => 'fr - lancewood',
        'revision_created' => '1568261548',
      ],
      // Node 11, revision 18, is.
      30 => [
        'log' => NULL,
        'body' => '2nd',
        'field_tree' => 'is - lancewood',
        'revision_created' => '1568261548',
      ],
    ],
  ];
}