function MigrateNodeCompleteTest::expectedNodeFieldRevisionTable

Same name in this branch
  1. 9 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeCompleteTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeCompleteTest::expectedNodeFieldRevisionTable()
Same name and namespace in other branches
  1. 8.9.x core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeCompleteTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeCompleteTest::expectedNodeFieldRevisionTable()
  2. 8.9.x core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeCompleteTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeCompleteTest::expectedNodeFieldRevisionTable()
  3. 10 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeCompleteTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeCompleteTest::expectedNodeFieldRevisionTable()
  4. 10 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeCompleteTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeCompleteTest::expectedNodeFieldRevisionTable()
  5. 11.x core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeCompleteTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeCompleteTest::expectedNodeFieldRevisionTable()
  6. 11.x core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeCompleteTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeCompleteTest::expectedNodeFieldRevisionTable()

Provides the expected node_field_revision table.

Return value

array The table.

1 call to MigrateNodeCompleteTest::expectedNodeFieldRevisionTable()
MigrateNodeCompleteTest::testNodeCompleteMigration in core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeCompleteTest.php
Tests the complete node migration.

File

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

Class

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

Namespace

Drupal\Tests\node\Kernel\Migrate\d7

Code

protected function expectedNodeFieldRevisionTable() {
    return [
        0 => [
            'nid' => '1',
            'vid' => '1',
            'langcode' => 'en',
            'status' => '1',
            'uid' => '2',
            'title' => 'An English Node',
            'created' => '1529615790',
            'changed' => '1529615790',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '1',
            'revision_translation_affected' => '1',
            'content_translation_source' => NULL,
            'content_translation_outdated' => '0',
        ],
        1 => [
            'nid' => '2',
            'vid' => '2',
            'langcode' => 'en',
            'status' => '1',
            'uid' => '2',
            'title' => 'The thing about Deep Space 9 (1st rev)',
            'created' => '1441306772',
            'changed' => '1564543588',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '1',
            'revision_translation_affected' => '1',
            'content_translation_source' => 'en',
            'content_translation_outdated' => '0',
        ],
        2 => [
            'nid' => '2',
            'vid' => '3',
            'langcode' => 'en',
            'status' => '1',
            'uid' => '2',
            'title' => 'The thing about Deep Space 9 (1st rev)',
            'created' => '1441306772',
            'changed' => '1564543588',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '1',
            'revision_translation_affected' => NULL,
            'content_translation_source' => 'en',
            'content_translation_outdated' => '0',
        ],
        3 => [
            'nid' => '2',
            'vid' => '3',
            'langcode' => 'is',
            'status' => '1',
            'uid' => '1',
            'title' => 'is - The thing about Deep Space 9 (1st rev)',
            'created' => '1471428152',
            'changed' => '1564543677',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '0',
            'revision_translation_affected' => '1',
            'content_translation_source' => 'en',
            'content_translation_outdated' => '0',
        ],
        4 => [
            'nid' => '4',
            'vid' => '4',
            'langcode' => 'is',
            'status' => '1',
            'uid' => '1',
            'title' => 'is - The thing about Firefly (1st rev)',
            'created' => '1478755274',
            'changed' => '1478755274',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '1',
            'revision_translation_affected' => '1',
            'content_translation_source' => 'is',
            'content_translation_outdated' => '0',
        ],
        5 => [
            'nid' => '4',
            'vid' => '5',
            'langcode' => 'en',
            'status' => '1',
            'uid' => '1',
            'title' => 'en - The thing about Firefly (1st rev)',
            'created' => '1478755314',
            'changed' => '1564543887',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '0',
            'revision_translation_affected' => '1',
            'content_translation_source' => 'is',
            'content_translation_outdated' => '0',
        ],
        6 => [
            'nid' => '4',
            'vid' => '5',
            'langcode' => 'is',
            'status' => '1',
            'uid' => '1',
            'title' => 'is - The thing about Firefly (1st rev)',
            'created' => '1478755274',
            'changed' => '1478755274',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '1',
            'revision_translation_affected' => NULL,
            'content_translation_source' => 'is',
            'content_translation_outdated' => '0',
        ],
        7 => [
            'nid' => '6',
            'vid' => '6',
            'langcode' => 'en',
            'status' => '1',
            'uid' => '1',
            'title' => 'Comments are closed :-(',
            'created' => '1504715414',
            'changed' => '1504715414',
            'promote' => '0',
            'sticky' => '0',
            'default_langcode' => '1',
            'revision_translation_affected' => '1',
            'content_translation_source' => NULL,
            'content_translation_outdated' => '0',
        ],
        8 => [
            'nid' => '7',
            'vid' => '7',
            'langcode' => 'en',
            'status' => '1',
            'uid' => '1',
            'title' => 'Comments are open :-)',
            'created' => '1504715432',
            'changed' => '1504715432',
            'promote' => '0',
            'sticky' => '0',
            'default_langcode' => '1',
            'revision_translation_affected' => '1',
            'content_translation_source' => NULL,
            'content_translation_outdated' => '0',
        ],
        9 => [
            'nid' => '8',
            'vid' => '8',
            'langcode' => 'en',
            'status' => '1',
            'uid' => '1',
            'title' => 'The number 47',
            'created' => '1551000341',
            'changed' => '1552126247',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '1',
            'revision_translation_affected' => '1',
            'content_translation_source' => 'en',
            'content_translation_outdated' => '0',
        ],
        10 => [
            'nid' => '8',
            'vid' => '9',
            'langcode' => 'en',
            'status' => '1',
            'uid' => '1',
            'title' => 'The number 47',
            'created' => '1551000341',
            'changed' => '1552126247',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '1',
            'revision_translation_affected' => NULL,
            'content_translation_source' => 'en',
            'content_translation_outdated' => '0',
        ],
        11 => [
            'nid' => '8',
            'vid' => '9',
            'langcode' => 'fr',
            'status' => '1',
            'uid' => '1',
            'title' => 'fr - The number 47',
            'created' => '1552126296',
            'changed' => '1552126296',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '0',
            'revision_translation_affected' => '1',
            'content_translation_source' => 'en',
            'content_translation_outdated' => '0',
        ],
        12 => [
            'nid' => '8',
            'vid' => '10',
            'langcode' => 'en',
            'status' => '1',
            'uid' => '1',
            'title' => 'The number 47',
            'created' => '1551000341',
            'changed' => '1552126247',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '1',
            'revision_translation_affected' => NULL,
            'content_translation_source' => 'en',
            'content_translation_outdated' => '0',
        ],
        13 => [
            'nid' => '8',
            'vid' => '10',
            'langcode' => 'fr',
            'status' => '1',
            'uid' => '1',
            'title' => 'fr - The number 47',
            'created' => '1552126296',
            'changed' => '1552126296',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '0',
            'revision_translation_affected' => NULL,
            'content_translation_source' => 'en',
            'content_translation_outdated' => '0',
        ],
        14 => [
            'nid' => '8',
            'vid' => '10',
            'langcode' => 'is',
            'status' => '1',
            'uid' => '1',
            'title' => 'is - The number 47',
            'created' => '1552126363',
            'changed' => '1552126363',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '0',
            'revision_translation_affected' => '1',
            'content_translation_source' => 'en',
            'content_translation_outdated' => '0',
        ],
        15 => [
            'nid' => '2',
            'vid' => '11',
            'langcode' => 'en',
            'status' => '1',
            'uid' => '2',
            'title' => 'The thing about Deep Space 9',
            'created' => '1441306772',
            'changed' => '1564543637',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '1',
            'revision_translation_affected' => '1',
            'content_translation_source' => 'en',
            'content_translation_outdated' => '0',
        ],
        16 => [
            'nid' => '2',
            'vid' => '11',
            'langcode' => 'is',
            'status' => '1',
            'uid' => '1',
            'title' => 'is - The thing about Deep Space 9 (1st rev)',
            'created' => '1471428152',
            'changed' => '1564543637',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '0',
            'revision_translation_affected' => '1',
            'content_translation_source' => 'en',
            'content_translation_outdated' => '0',
        ],
        17 => [
            'nid' => '2',
            'vid' => '12',
            'langcode' => 'en',
            'status' => '1',
            'uid' => '2',
            'title' => 'The thing about Deep Space 9',
            'created' => '1441306772',
            'changed' => '1564543637',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '1',
            'revision_translation_affected' => NULL,
            'content_translation_source' => 'en',
            'content_translation_outdated' => '0',
        ],
        18 => [
            'nid' => '2',
            'vid' => '12',
            'langcode' => 'is',
            'status' => '1',
            'uid' => '1',
            'title' => 'is - The thing about Deep Space 9',
            'created' => '1471428152',
            'changed' => '1564543706',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '0',
            'revision_translation_affected' => '1',
            'content_translation_source' => 'en',
            'content_translation_outdated' => '0',
        ],
        19 => [
            'nid' => '4',
            'vid' => '13',
            'langcode' => 'en',
            'status' => '1',
            'uid' => '1',
            'title' => 'en - The thing about Firefly (1st rev)',
            'created' => '1478755314',
            'changed' => '1564543887',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '0',
            'revision_translation_affected' => NULL,
            'content_translation_source' => 'is',
            'content_translation_outdated' => '0',
        ],
        20 => [
            'nid' => '4',
            'vid' => '13',
            'langcode' => 'is',
            'status' => '1',
            'uid' => '1',
            'title' => 'is - The thing about Firefly',
            'created' => '1478755274',
            'changed' => '1564543810',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '1',
            'revision_translation_affected' => '1',
            'content_translation_source' => 'is',
            'content_translation_outdated' => '0',
        ],
        21 => [
            'nid' => '4',
            'vid' => '14',
            'langcode' => 'en',
            'status' => '1',
            'uid' => '1',
            'title' => 'en - The thing about Firefly',
            'created' => '1478755314',
            'changed' => '1564543929',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '0',
            'revision_translation_affected' => '1',
            'content_translation_source' => 'is',
            'content_translation_outdated' => '0',
        ],
        22 => [
            'nid' => '4',
            'vid' => '14',
            'langcode' => 'is',
            'status' => '1',
            'uid' => '1',
            'title' => 'is - The thing about Firefly',
            'created' => '1478755274',
            'changed' => '1564543810',
            'promote' => '1',
            'sticky' => '0',
            'default_langcode' => '1',
            'revision_translation_affected' => NULL,
            'content_translation_source' => 'is',
            'content_translation_outdated' => '0',
        ],
        23 => [
            'nid' => '11',
            'vid' => '15',
            'langcode' => 'en',
            'status' => '1',
            'uid' => '1',
            'title' => 'Page one',
            'created' => '1568261523',
            'changed' => '1568261523',
            'promote' => '0',
            'sticky' => '0',
            'default_langcode' => '1',
            'revision_translation_affected' => '1',
            'content_translation_source' => NULL,
            'content_translation_outdated' => '0',
        ],
        24 => [
            'nid' => '11',
            'vid' => '16',
            'langcode' => 'en',
            'status' => '1',
            'uid' => '1',
            'title' => 'Page one',
            'created' => '1568261523',
            'changed' => '1568261523',
            'promote' => '0',
            'sticky' => '0',
            'default_langcode' => '1',
            'revision_translation_affected' => NULL,
            'content_translation_source' => '',
            'content_translation_outdated' => '0',
        ],
        25 => [
            'nid' => '11',
            'vid' => '16',
            'langcode' => 'is',
            'status' => '1',
            'uid' => '1',
            'title' => 'Page one',
            'created' => '1568261548',
            'changed' => '1568261548',
            'promote' => '0',
            'sticky' => '0',
            'default_langcode' => '0',
            'revision_translation_affected' => '1',
            'content_translation_source' => 'en',
            'content_translation_outdated' => '0',
        ],
        26 => [
            'nid' => '11',
            'vid' => '17',
            'langcode' => 'en',
            'status' => '1',
            'uid' => '1',
            'title' => 'Page one',
            'created' => '1568261523',
            'changed' => '1568261687',
            'promote' => '0',
            'sticky' => '0',
            'default_langcode' => '1',
            'revision_translation_affected' => NULL,
            'content_translation_source' => '',
            'content_translation_outdated' => '0',
        ],
        27 => [
            'nid' => '11',
            'vid' => '17',
            'langcode' => 'is',
            'status' => '1',
            'uid' => '1',
            'title' => 'Page one',
            'created' => '1568261548',
            'changed' => '1568261548',
            'promote' => '0',
            'sticky' => '0',
            'default_langcode' => '0',
            'revision_translation_affected' => NULL,
            'content_translation_source' => 'en',
            'content_translation_outdated' => '0',
        ],
        28 => [
            'nid' => '11',
            'vid' => '18',
            'langcode' => 'en',
            'status' => '1',
            'uid' => '1',
            'title' => 'Page one',
            'created' => '1568261523',
            'changed' => '1568261687',
            'promote' => '0',
            'sticky' => '0',
            'default_langcode' => '1',
            'revision_translation_affected' => NULL,
            'content_translation_source' => '',
            'content_translation_outdated' => '0',
        ],
        29 => [
            'nid' => '11',
            'vid' => '18',
            'langcode' => 'fr',
            'status' => '1',
            'uid' => '1',
            'title' => 'Page one',
            'created' => '1568261721',
            'changed' => '1568261721',
            'promote' => '0',
            'sticky' => '0',
            'default_langcode' => '0',
            'revision_translation_affected' => '1',
            'content_translation_source' => 'en',
            'content_translation_outdated' => '0',
        ],
        30 => [
            'nid' => '11',
            'vid' => '18',
            'langcode' => 'is',
            'status' => '1',
            'uid' => '1',
            'title' => 'Page one',
            'created' => '1568261548',
            'changed' => '1568261548',
            'promote' => '0',
            'sticky' => '0',
            'default_langcode' => '0',
            'revision_translation_affected' => NULL,
            'content_translation_source' => 'en',
            'content_translation_outdated' => '0',
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.