You are here

protected function MigrateNodeCompleteTest::expectedRevisionEntityData in Drupal 9

Same name in this branch
  1. 9 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeCompleteTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeCompleteTest::expectedRevisionEntityData()
  2. 9 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. 8 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeCompleteTest.php \Drupal\Tests\node\Kernel\Migrate\d6\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/d6/MigrateNodeCompleteTest.php, line 1047

Class

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

Namespace

Drupal\Tests\node\Kernel\Migrate\d6

Code

protected function expectedRevisionEntityData() {
  return [
    $revision_data = [
      // Node 1, revision 1, und.
      0 => [
        'log' => NULL,
        'created' => '1390095702',
        'changed' => '1390095702',
      ],
      // Node 2, revision 3, und.
      1 => [
        'log' => NULL,
        'created' => '1420718386',
        'changed' => '1420718386',
      ],
      // Node 3, revision 4, und.
      2 => [
        'log' => NULL,
        'created' => '1390095701',
        'changed' => '1390095701',
      ],
      // Node 1, revision 5, und.
      3 => [
        'log' => 'modified rev 2',
        'created' => '1390095703',
        'changed' => '1390095703',
      ],
      // Node 4, revision 6, und.
      4 => [
        'log' => NULL,
        'created' => '1390095701',
        'changed' => '1390095701',
      ],
      // Node 5, revision 7, und.
      5 => [
        'log' => NULL,
        'created' => '1390095701',
        'changed' => '1390095701',
      ],
      // Node 6, revision 8, und.
      6 => [
        'log' => NULL,
        'created' => '1390095701',
        'changed' => '1390095701',
      ],
      // Node 7, revision 9, und.
      7 => [
        'log' => NULL,
        'created' => '1390095701',
        'changed' => '1390095701',
      ],
      // Node 8, revision 10, und.
      8 => [
        'log' => NULL,
        'created' => '1390095701',
        'changed' => '1390095701',
      ],
      // Node 9, revision 11, und.
      9 => [
        'log' => NULL,
        'created' => '1390095701',
        'changed' => '1390095701',
      ],
      // Node 9, revision 12, und.
      10 => [
        'log' => NULL,
        'created' => '1444671588',
        'changed' => '1444671588',
      ],
      // Node 10, revision 13, en.
      11 => [
        'log' => NULL,
        'created' => '1444238808',
        'changed' => '1444238808',
      ],
      // Node 10, revision 14, en.
      12 => [
        'log' => NULL,
        'created' => '1444239050',
        'changed' => '1444238808',
      ],
      // Node 10, revision 14, fr.
      13 => [
        'log' => NULL,
        'created' => '1444239050',
        'changed' => '1444239050',
      ],
      // Node 12, revision 15, zu.
      14 => [
        'log' => NULL,
        'created' => '1444238808',
        'changed' => '1444238808',
      ],
      // Node 12, revision 16, en.
      15 => [
        'log' => NULL,
        'created' => '1444239050',
        'changed' => '1444239050',
      ],
      // Node 12, revision 16, zu.
      16 => [
        'log' => NULL,
        'created' => '1444239050',
        'changed' => '1444238808',
      ],
      // Node 14, revision 17, und.
      17 => [
        'log' => NULL,
        'created' => '1493066668',
        'changed' => '1493066668',
      ],
      // Node 15, revision 18, und.
      18 => [
        'log' => NULL,
        'created' => '1493066677',
        'changed' => '1493066677',
      ],
      // Node 16, revision 19, und.
      19 => [
        'log' => NULL,
        'created' => '1493066684',
        'changed' => '1493066684',
      ],
      // Node 17, revision 20, und.
      20 => [
        'log' => NULL,
        'created' => '1493066693',
        'changed' => '1493066693',
      ],
      // Node 18, revision 21, und.
      21 => [
        'log' => NULL,
        'created' => '1494966544',
        'changed' => '1494966544',
      ],
      // Node 19, revision 22, und.
      22 => [
        'log' => NULL,
        'created' => '1501955771',
        'changed' => '1501955771',
      ],
      // Node 12, revision 23, en.
      23 => [
        'log' => NULL,
        'created' => '1520613305',
        'changed' => '1444239050',
      ],
      // Node 12, revision 23, fr.
      24 => [
        'log' => NULL,
        'created' => '1520613305',
        'changed' => '1520613305',
      ],
      // Node 12, revision 23, zu.
      25 => [
        'log' => NULL,
        'created' => '1520613305',
        'changed' => '1444238808',
      ],
      // Node 1, revision 2001, und.
      26 => [
        'log' => 'modified rev 3',
        'created' => '1420861423',
        'changed' => '1420861423',
      ],
      // Node 21, revision 2002, en.
      27 => [
        'log' => NULL,
        'created' => '1534014650',
        'changed' => '1534014650',
      ],
      // Node 21, revision 2003, en.
      28 => [
        'log' => NULL,
        'created' => '1534014687',
        'changed' => '1534014650',
      ],
      // Node 21, revision 2003, fr.
      29 => [
        'log' => NULL,
        'created' => '1534014687',
        'changed' => '1534014687',
      ],
    ],
  ];
}