node_channel_specific.php in Acquia Content Hub 8.2
Same filename in this branch
- 8.2 tests/fixtures/import/drupal-9.2/expectations/node/node_channel_specific.php
- 8.2 tests/fixtures/import/drupal-9.0/expectations/node/node_channel_specific.php
- 8.2 tests/fixtures/import/drupal-8.9/expectations/node/node_channel_specific.php
- 8.2 tests/fixtures/import/drupal-9.1/expectations/node/node_channel_specific.php
- 8.2 tests/fixtures/import/drupal-8.8/expectations/node/node_channel_specific.php
Expectation for node page scenario.
File
tests/fixtures/import/drupal-8.8/expectations/node/node_channel_specific.phpView source
<?php
/**
* @file
* Expectation for node page scenario.
*/
use Drupal\Tests\acquia_contenthub\Kernel\Stubs\CdfExpectations;
$data = [
'uuid' => [
'en' => [
0 => [
'value' => '0b3afb48-6f0c-45e5-a3a5-baefd36d65db',
],
],
],
'langcode' => [
'en' => [
0 => [
'value' => 'en',
],
],
],
'type' => [
'en' => [
0 => [
'target_id' => '2e2c6696-4441-480c-9708-8d9802a878ad',
],
],
],
'revision_timestamp' => [
'en' => [
0 => [
'value' => '1571236725',
],
],
],
'revision_uid' => [
'en' => [
0 => [
'target_id' => 'e2c2cca5-49b7-4a94-a30c-945bc8888d07',
],
],
],
'revision_log' => [
'en' => [],
],
'status' => [
'en' => [
0 => [
'value' => '1',
],
],
],
'title' => [
'en' => [
0 => [
'value' => 'Test english label',
],
],
],
'uid' => [
'en' => [
0 => [
'target_id' => 'e2c2cca5-49b7-4a94-a30c-945bc8888d07',
],
],
],
'created' => [
'en' => [
0 => [
'value' => '1571236726',
],
],
],
'changed' => [
'en' => [
0 => [
'value' => '1545339655',
],
],
],
'promote' => [
'en' => [
0 => [
'value' => '0',
],
],
],
'sticky' => [
'en' => [
0 => [
'value' => '0',
],
],
],
'default_langcode' => [
'en' => [
0 => [
'value' => '1',
],
],
],
'revision_default' => [
'en' => [
0 => [
'value' => '1',
],
],
],
'revision_translation_affected' => [
'en' => [
0 => [
'value' => '1',
],
],
],
'moderation_state' => [
'en' => [
0 => [
'value' => 'published',
],
],
],
'path' => [
'en' => [
0 => [
'langcode' => 'en',
],
],
],
'body' => [
'en' => [
0 => [
'value' => "Test english label",
'summary' => '',
'format' => 'plain_text',
],
],
],
];
$expectations = [
'0b3afb48-6f0c-45e5-a3a5-baefd36d65db' => new CdfExpectations($data, [
'nid',
'vid',
'changed',
'created',
'path',
'content_translation_source',
'content_translation_outdated',
]),
];
return $expectations;