You are here

protected property NodeTest::$expectedResults in Zircon Profile 8.0

Same name in this branch
  1. 8.0 core/modules/node/tests/src/Unit/Plugin/migrate/source/d6/NodeTest.php \Drupal\Tests\node\Unit\Plugin\migrate\source\d6\NodeTest::expectedResults
  2. 8.0 core/modules/node/tests/src/Unit/Plugin/migrate/source/d7/NodeTest.php \Drupal\Tests\node\Unit\Plugin\migrate\source\d7\NodeTest::expectedResults
Same name and namespace in other branches
  1. 8 core/modules/node/tests/src/Unit/Plugin/migrate/source/d6/NodeTest.php \Drupal\Tests\node\Unit\Plugin\migrate\source\d6\NodeTest::expectedResults

Expected results after the source parsing.

Type: array

Overrides MigrateSqlSourceTestCase::$expectedResults

File

core/modules/node/tests/src/Unit/Plugin/migrate/source/d6/NodeTest.php, line 28
Contains \Drupal\Tests\node\Unit\Plugin\migrate\source\d6\NodeTest.

Class

NodeTest
Tests D6 node source plugin.

Namespace

Drupal\Tests\node\Unit\Plugin\migrate\source\d6

Code

protected $expectedResults = array(
  array(
    // Node fields.
    'nid' => 1,
    'vid' => 1,
    'type' => 'page',
    'language' => 'en',
    'title' => 'node title 1',
    'uid' => 1,
    'status' => 1,
    'created' => 1279051598,
    'changed' => 1279051598,
    'comment' => 2,
    'promote' => 1,
    'moderate' => 0,
    'sticky' => 0,
    'tnid' => 0,
    'translate' => 0,
    // Node revision fields.
    'body' => 'body for node 1',
    'teaser' => 'teaser for node 1',
    'log' => '',
    'timestamp' => 1279051598,
    'format' => 1,
  ),
  array(
    // Node fields.
    'nid' => 2,
    'vid' => 2,
    'type' => 'page',
    'language' => 'en',
    'title' => 'node title 2',
    'uid' => 1,
    'status' => 1,
    'created' => 1279290908,
    'changed' => 1279308993,
    'comment' => 0,
    'promote' => 1,
    'moderate' => 0,
    'sticky' => 0,
    'tnid' => 0,
    'translate' => 0,
    // Node revision fields.
    'body' => 'body for node 2',
    'teaser' => 'teaser for node 2',
    'log' => '',
    'timestamp' => 1279308993,
    'format' => 1,
  ),
  array(
    'nid' => 5,
    'vid' => 5,
    'type' => 'story',
    'language' => 'en',
    'title' => 'node title 5',
    'uid' => 1,
    'status' => 1,
    'created' => 1279290908,
    'changed' => 1279308993,
    'comment' => 0,
    'promote' => 1,
    'moderate' => 0,
    'sticky' => 0,
    'tnid' => 0,
    'translate' => 0,
    // Node revision fields.
    'body' => 'body for node 5',
    'teaser' => 'body for node 5',
    'log' => '',
    'timestamp' => 1279308993,
    'format' => 1,
    'field_test_four' => array(
      array(
        'value' => '3.14159',
      ),
    ),
  ),
);