You are here

public function MigrateUserRoleTest::testUserRole in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/user/src/Tests/Migrate/d6/MigrateUserRoleTest.php \Drupal\user\Tests\Migrate\d6\MigrateUserRoleTest::testUserRole()
  2. 8 core/modules/user/src/Tests/Migrate/d7/MigrateUserRoleTest.php \Drupal\user\Tests\Migrate\d7\MigrateUserRoleTest::testUserRole()
Same name and namespace in other branches
  1. 8.0 core/modules/user/src/Tests/Migrate/d7/MigrateUserRoleTest.php \Drupal\user\Tests\Migrate\d7\MigrateUserRoleTest::testUserRole()

Tests user role migration.

File

core/modules/user/src/Tests/Migrate/d7/MigrateUserRoleTest.php, line 60
Contains \Drupal\user\Tests\Migrate\d7\MigrateUserRoleTest.

Class

MigrateUserRoleTest
Upgrade user roles to user.role.*.yml.

Namespace

Drupal\user\Tests\Migrate\d7

Code

public function testUserRole() {
  $this
    ->assertEntity('anonymous', 'anonymous user', 1);
  $this
    ->assertEntity('authenticated', 'authenticated user', 2);
  $this
    ->assertEntity('administrator', 'administrator', 3);
}