You are here

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

Same name and namespace in other branches
  1. 2.x tests/src/Unit/OpenIDConnectStateTokenTest.php \Drupal\Tests\openid_connect\Unit\OpenIDConnectStateTokenTest::setUp()

Overrides UnitTestCase::setUp

File

tests/src/Unit/OpenIDConnectStateTokenTest.php, line 35

Class

OpenIDConnectStateTokenTest
Test the OpenIDConnectStateToken class.

Namespace

Drupal\Tests\openid_connect\Unit

Code

protected function setUp() : void {
  parent::setUp();
  $this->stateTokenService = new OpenIDConnectStateToken();

  // Set the state token and save the results.
  $this->stateToken = $this->stateTokenService
    ->create();
}