You are here

user_email_match.php in Acquia Content Hub 8.2

Expectation for user email match scenario.

File

tests/fixtures/import/drupal-9.1/expectations/user/user_email_match.php
View source
<?php

/**
 * @file
 * Expectation for user email match scenario.
 */
use Drupal\Tests\acquia_contenthub\Kernel\Stubs\CdfExpectations;
$data = [
  "uuid" => [
    "en" => [
      0 => [
        "value" => "b7a60b03-3ae2-4480-b261-f72021817346",
      ],
    ],
  ],
  "langcode" => [
    "en" => [
      0 => [
        "value" => "en",
      ],
    ],
  ],
  "preferred_langcode" => [
    "en" => [
      0 => [
        "value" => "en",
      ],
    ],
  ],
  "preferred_admin_langcode" => [
    "en" => [
      0 => [
        "value" => "en",
      ],
    ],
  ],
  "name" => [
    "en" => [
      0 => [
        "value" => "ACH test",
      ],
    ],
  ],
  "pass" => [
    "en" => [
      0 => [
        "value" => '$S$E1mgL7eX/3AkzGayaS1l7Or5Ggw0DsgUw.ExtaoWQkWaQrJ5JImC',
      ],
    ],
  ],
  "mail" => [
    "en" => [
      0 => [
        "value" => "foo@foo.com",
      ],
    ],
  ],
  "timezone" => [
    "en" => [
      0 => [
        "value" => "Europe/Budapest",
      ],
    ],
  ],
  "status" => [
    "en" => [
      0 => [
        "value" => TRUE,
      ],
    ],
  ],
  "created" => [
    "en" => [
      0 => [
        "value" => "1546435877",
      ],
    ],
  ],
  "changed" => [
    "en" => [
      0 => [
        "value" => "1546520108",
      ],
    ],
  ],
  "access" => [
    "en" => [
      0 => [
        "value" => "1546520744",
      ],
    ],
  ],
  "login" => [
    "en" => [
      0 => [
        "value" => "1546520744",
      ],
    ],
  ],
  "init" => [
    "en" => [
      0 => [
        "value" => "test@test.ach.com",
      ],
    ],
  ],
  "default_langcode" => [
    "en" => [
      0 => [
        "value" => TRUE,
      ],
    ],
  ],
  "roles" => [
    "en" => [
      0 => [
        "target_id" => '238040d0-e70a-4d39-bed3-b3a74af87678',
      ],
    ],
  ],
];
$expectations = [
  'b7a60b03-3ae2-4480-b261-f72021817346' => new CdfExpectations($data, [
    'uid',
    'user_picture',
  ]),
];
return $expectations;