public function NodeTest::expectedNodeFieldRevisionTable in Commerce Migrate 3.1.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::expectedNodeFieldRevisionTable()
- 3.0.x modules/commerce/tests/src/Kernel/Migrate/commerce1/NodeTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\NodeTest::expectedNodeFieldRevisionTable()
Returns the expected data for the node_field_revision table.
1 call to NodeTest::expectedNodeFieldRevisionTable()
- 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 419
Class
- NodeTest
- Tests node migration.
Namespace
Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1Code
public function expectedNodeFieldRevisionTable() {
return [
[
'nid' => '1',
'vid' => '1',
'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',
'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',
'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',
'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',
'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',
'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',
'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',
'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',
'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',
'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',
'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',
'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',
'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',
'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',
'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',
'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',
'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',
],
];
}