You are here

protected function AccessTest::setUp in Role Delegation 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/AccessTest.php, line 34

Class

AccessTest
@coversDefaultClass \Drupal\role_delegation\Access\RoleDelegationAccessCheck

Namespace

Drupal\Tests\role_delegation\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installSchema('system', 'sequences');
  $this
    ->installEntitySchema('user');
  $this->accessChecker = $this->container
    ->get('access_check.role_delegation');

  // User 1 is still a super user so we create that user first so moving
  // forward we're just using normal users.
  $this
    ->createUser();
}