function MigrateNodeCompleteTest::expectedNodeFieldDataTable

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

Provides the expected node_field_data table.

Return value

array The expected table rows.

1 call to MigrateNodeCompleteTest::expectedNodeFieldDataTable()
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 224

Class

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

Namespace

Drupal\Tests\node\Kernel\Migrate\d7

Code

protected function expectedNodeFieldDataTable() {
    return [
        0 => [
            'nid' => '1',
            'vid' => '1',
            'type' => 'test_content_type',
            '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' => '12',
            'type' => 'article',
            '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',
        ],
        2 => [
            'nid' => '2',
            'vid' => '12',
            'type' => 'article',
            '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',
        ],
        3 => [
            'nid' => '4',
            'vid' => '14',
            'type' => 'article',
            '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',
        ],
        4 => [
            'nid' => '4',
            'vid' => '14',
            'type' => 'article',
            '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',
        ],
        5 => [
            'nid' => '6',
            'vid' => '6',
            'type' => 'forum',
            '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',
        ],
        6 => [
            'nid' => '7',
            'vid' => '7',
            'type' => 'forum',
            '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',
        ],
        7 => [
            'nid' => '8',
            'vid' => '10',
            'type' => 'blog',
            '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',
        ],
        8 => [
            'nid' => '8',
            'vid' => '10',
            'type' => 'blog',
            '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',
        ],
        9 => [
            'nid' => '8',
            'vid' => '10',
            'type' => 'blog',
            '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',
        ],
        10 => [
            'nid' => '11',
            'vid' => '18',
            'type' => 'et',
            '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',
        ],
        11 => [
            'nid' => '11',
            'vid' => '18',
            'type' => 'et',
            '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',
        ],
        12 => [
            'nid' => '11',
            'vid' => '18',
            'type' => 'et',
            '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.