You are here

protected function OpenIDConnectAuthmapTest::setUp in OpenID Connect / OAuth client 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/OpenIDConnectAuthmapTest.php, line 62

Class

OpenIDConnectAuthmapTest
Test the OpenIdConnectAuthmap class.

Namespace

Drupal\Tests\openid_connect\Unit

Code

protected function setUp() {
  parent::setUp();
  $this->account = $this
    ->createMock(AccountInterface::class);
  $this->connection = $this
    ->createMock(Connection::class);
  $this->userStorage = $this
    ->createMock(EntityStorageInterface::class);
  $this->entityTypeManager = $this
    ->createMock(EntityTypeManagerInterface::class);
  $this->entityTypeManager
    ->expects($this
    ->once())
    ->method('getStorage')
    ->willReturn($this->userStorage);
}