node_page_user.php in Acquia Content Hub 8.2
Same filename in this branch
- 8.2 tests/fixtures/import/drupal-9.2/expectations/node/node_page_user.php
- 8.2 tests/fixtures/import/drupal-9.0/expectations/node/node_page_user.php
- 8.2 tests/fixtures/import/drupal-8.9/expectations/node/node_page_user.php
- 8.2 tests/fixtures/import/drupal-9.1/expectations/node/node_page_user.php
- 8.2 tests/fixtures/import/drupal-8.8/expectations/node/node_page_user.php
Expectation for node page user scenario.
File
tests/fixtures/import/drupal-8.9/expectations/node/node_page_user.phpView source
<?php
/**
* @file
* Expectation for node page user scenario.
*/
use Drupal\Tests\acquia_contenthub\Kernel\Stubs\CdfExpectations;
$data = [
'uuid' => [
'en' => [
0 => [
'value' => '995f955b-08a9-4436-a0c7-1cde093ee174',
],
],
],
'langcode' => [
'en' => [
0 => [
'value' => 'en',
],
],
],
'preferred_langcode' => [
'en' => [
0 => [
'value' => 'en',
],
],
],
'preferred_admin_langcode' => [
'en' => [],
],
'name' => [
'en' => [
0 => [
'value' => 'admin',
],
],
],
'pass' => [
'en' => [
0 => [
'value' => '$S$EV9u1jOqu4/m8OG1cQHgnZUZXc7DlWqKz/STcN3r22lf/pYHjS/u',
],
],
],
'mail' => [
'en' => [
0 => [
'value' => 'admin@example.com',
],
],
],
'timezone' => [
'en' => [
0 => [
'value' => 'UTC',
],
],
],
'status' => [
'en' => [
0 => [
'value' => TRUE,
],
],
],
'created' => [
'en' => [
0 => [
'value' => '1585315609',
],
],
],
'changed' => [
'en' => [
0 => [
'value' => '1585315681',
],
],
],
'access' => [
'en' => [
0 => [
'value' => '1585394321',
],
],
],
'login' => [
'en' => [
0 => [
'value' => '1585394126',
],
],
],
'init' => [
'en' => [
0 => [
'value' => 'admin@example.com',
],
],
],
'default_langcode' => [
'en' => [
0 => [
'value' => TRUE,
],
],
],
];
$expectations = [
'995f955b-08a9-4436-a0c7-1cde093ee174' => new CdfExpectations($data, [
'uid',
'user_picture',
'roles',
]),
];
return $expectations;