public function NodeTest::expectedNodeFieldDataTable in Commerce Migrate 3.0.x
Same name and namespace in other branches
- 8.2 modules/commerce/tests/src/Kernel/Migrate/commerce1/NodeTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\NodeTest::expectedNodeFieldDataTable()
- 3.1.x modules/commerce/tests/src/Kernel/Migrate/commerce1/NodeTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\NodeTest::expectedNodeFieldDataTable()
Returns the expected data for the node_field_data table.
1 call to NodeTest::expectedNodeFieldDataTable()
- NodeTest::testNode in modules/
commerce/ tests/ src/ Kernel/ Migrate/ commerce1/ NodeTest.php - Test node migration from Commerce 1 to Commerce Drupal 8.
File
- modules/
commerce/ tests/ src/ Kernel/ Migrate/ commerce1/ NodeTest.php, line 155
Class
- NodeTest
- Tests node migration.
Namespace
Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1Code
public function expectedNodeFieldDataTable() {
return [
[
'nid' => '1',
'vid' => '1',
'type' => 'page',
'langcode' => 'und',
'status' => '1',
'uid' => '1',
'title' => 'Contact',
'created' => '1493287345',
'changed' => '1493287345',
'promote' => '0',
'sticky' => '0',
'default_langcode' => '1',
'revision_translation_affected' => '1',
],
[
'nid' => '2',
'vid' => '2',
'type' => 'page',
'langcode' => 'und',
'status' => '1',
'uid' => '1',
'title' => 'About',
'created' => '1493287345',
'changed' => '1493287345',
'promote' => '0',
'sticky' => '0',
'default_langcode' => '1',
'revision_translation_affected' => '1',
],
[
'nid' => '3',
'vid' => '3',
'type' => 'page',
'langcode' => 'und',
'status' => '1',
'uid' => '1',
'title' => 'Terms of Use',
'created' => '1493287345',
'changed' => '1493287345',
'promote' => '0',
'sticky' => '0',
'default_langcode' => '1',
'revision_translation_affected' => '1',
],
[
'nid' => '4',
'vid' => '4',
'type' => 'page',
'langcode' => 'und',
'status' => '1',
'uid' => '1',
'title' => 'Payment',
'created' => '1493287345',
'changed' => '1493287345',
'promote' => '0',
'sticky' => '0',
'default_langcode' => '1',
'revision_translation_affected' => '1',
],
[
'nid' => '5',
'vid' => '5',
'type' => 'page',
'langcode' => 'und',
'status' => '1',
'uid' => '1',
'title' => 'Shipping fees',
'created' => '1493287345',
'changed' => '1493287345',
'promote' => '0',
'sticky' => '0',
'default_langcode' => '1',
'revision_translation_affected' => '1',
],
[
'nid' => '6',
'vid' => '6',
'type' => 'page',
'langcode' => 'und',
'status' => '1',
'uid' => '1',
'title' => 'Press links',
'created' => '1493287345',
'changed' => '1493287345',
'promote' => '0',
'sticky' => '0',
'default_langcode' => '1',
'revision_translation_affected' => '1',
],
[
'nid' => '7',
'vid' => '7',
'type' => 'page',
'langcode' => 'und',
'status' => '1',
'uid' => '1',
'title' => 'Service agreements',
'created' => '1493287345',
'changed' => '1493287345',
'promote' => '0',
'sticky' => '0',
'default_langcode' => '1',
'revision_translation_affected' => '1',
],
[
'nid' => '8',
'vid' => '8',
'type' => 'page',
'langcode' => 'und',
'status' => '1',
'uid' => '1',
'title' => 'Our security policy',
'created' => '1493287345',
'changed' => '1493287345',
'promote' => '0',
'sticky' => '0',
'default_langcode' => '1',
'revision_translation_affected' => '1',
],
[
'nid' => '9',
'vid' => '9',
'type' => 'page',
'langcode' => 'und',
'status' => '1',
'uid' => '1',
'title' => '403 error',
'created' => '1493287345',
'changed' => '1493287345',
'promote' => '0',
'sticky' => '0',
'default_langcode' => '1',
'revision_translation_affected' => '1',
],
[
'nid' => '10',
'vid' => '10',
'type' => 'page',
'langcode' => 'und',
'status' => '1',
'uid' => '1',
'title' => '404 error',
'created' => '1493287345',
'changed' => '1493287345',
'promote' => '0',
'sticky' => '0',
'default_langcode' => '1',
'revision_translation_affected' => '1',
],
[
'nid' => '11',
'vid' => '11',
'type' => 'ad_push',
'langcode' => 'und',
'status' => '1',
'uid' => '1',
'title' => 'Ad push - Getting thirsty',
'created' => '1493287378',
'changed' => '1493287378',
'promote' => '0',
'sticky' => '0',
'default_langcode' => '1',
'revision_translation_affected' => '1',
],
[
'nid' => '12',
'vid' => '12',
'type' => 'ad_push',
'langcode' => 'und',
'status' => '1',
'uid' => '1',
'title' => 'Ad push - Go green',
'created' => '1493287378',
'changed' => '1493287378',
'promote' => '0',
'sticky' => '0',
'default_langcode' => '1',
'revision_translation_affected' => '1',
],
[
'nid' => '13',
'vid' => '13',
'type' => 'blog_post',
'langcode' => 'und',
'status' => '1',
'uid' => '1',
'title' => 'Social Logins Made Simple',
'created' => '1493287383',
'changed' => '1493287383',
'promote' => '0',
'sticky' => '0',
'default_langcode' => '1',
'revision_translation_affected' => '1',
],
[
'nid' => '14',
'vid' => '14',
'type' => 'blog_post',
'langcode' => 'und',
'status' => '1',
'uid' => '1',
'title' => 'CMT - Commerce Customizable Products',
'created' => '1493287383',
'changed' => '1493287383',
'promote' => '0',
'sticky' => '0',
'default_langcode' => '1',
'revision_translation_affected' => '1',
],
[
'nid' => '35',
'vid' => '35',
'type' => 'slideshow',
'langcode' => 'und',
'status' => '1',
'uid' => '1',
'title' => "The latest & greatest what's new",
'created' => '1493287427',
'changed' => '1493287427',
'promote' => '0',
'sticky' => '0',
'default_langcode' => '1',
'revision_translation_affected' => '1',
],
[
'nid' => '36',
'vid' => '36',
'type' => 'slideshow',
'langcode' => 'und',
'status' => '1',
'uid' => '1',
'title' => "get it quick because... it's hot",
'created' => '1493287427',
'changed' => '1493287427',
'promote' => '0',
'sticky' => '0',
'default_langcode' => '1',
'revision_translation_affected' => '1',
],
[
'nid' => '37',
'vid' => '37',
'type' => 'slideshow',
'langcode' => 'und',
'status' => '1',
'uid' => '1',
'title' => 'Go with one of our staff picks',
'created' => '1493287427',
'changed' => '1493287427',
'promote' => '0',
'sticky' => '0',
'default_langcode' => '1',
'revision_translation_affected' => '1',
],
];
}