You are here

public function UserTest::testUser in Commerce Migrate 8.2

Same name and namespace in other branches
  1. 3.1.x modules/magento/tests/src/Kernel/Migrate/magento2/UserTest.php \Drupal\Tests\commerce_migrate_magento\Kernel\Migrate\magento2\UserTest::testUser()
  2. 3.0.x modules/magento/tests/src/Kernel/Migrate/magento2/UserTest.php \Drupal\Tests\commerce_migrate_magento\Kernel\Migrate\magento2\UserTest::testUser()

Test attribute migration.

File

modules/magento/tests/src/Kernel/Migrate/magento2/UserTest.php, line 53

Class

UserTest
Tests user migration.

Namespace

Drupal\Tests\commerce_migrate_magento\Kernel\Migrate\magento2

Code

public function testUser() {
  $this
    ->assertUserEntity(1, 'Veronica Costello', 'roni_cost@example.com', NULL, '0', '', 'en', '', NULL, [
    'authenticated',
  ]);
  $this
    ->assertUserEntity(2, 'Tui Song', 'tui@example.com', NULL, '0', '', 'en', '', NULL, [
    'authenticated',
  ]);

  /** @var \Drupal\user\UserInterface $user */
  $this
    ->assertNull(User::load(3));
}