You are here

protected function AuthmapTest::setUp in External Authentication 8

Same name in this branch
  1. 8 tests/src/Unit/AuthmapTest.php \Drupal\Tests\externalauth\Unit\AuthmapTest::setUp()
  2. 8 tests/src/Kernel/AuthmapTest.php \Drupal\Tests\externalauth\Kernel\AuthmapTest::setUp()
Same name and namespace in other branches
  1. 2.0.x tests/src/Kernel/AuthmapTest.php \Drupal\Tests\externalauth\Kernel\AuthmapTest::setUp()

Overrides KernelTestBase::setUp

File

tests/src/Kernel/AuthmapTest.php, line 32

Class

AuthmapTest
Tests the Authmap service.

Namespace

Drupal\Tests\externalauth\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->authmap = \Drupal::service('externalauth.authmap');
  $this
    ->installSchema('externalauth', [
    'authmap',
  ]);
  $this
    ->installEntitySchema('user');
}