You are here

private function OpenIdConnectSessionTest::getExpectedSessionArray in OpenID Connect / OAuth client 8

Get the expected session array to compare.

Parameters

string $path: The path that is expected in the session global.

string $queryString: The query string that is expected in the session global.

Return value

array The expected session array.

2 calls to OpenIdConnectSessionTest::getExpectedSessionArray()
OpenIdConnectSessionTest::testSaveDestination in tests/src/Unit/OpenIdConnectSessionTest.php
Test the save destination method.
OpenIdConnectSessionTest::testSaveDestinationUserPath in tests/src/Unit/OpenIdConnectSessionTest.php
Test the saveDestination() method with the /user/login path.

File

tests/src/Unit/OpenIdConnectSessionTest.php, line 131

Class

OpenIdConnectSessionTest
@coversDefaultClass \Drupal\openid_connect\OpenIDConnectSession @group openid_connect

Namespace

Drupal\Tests\openid_connect\Unit

Code

private function getExpectedSessionArray(string $path, string $queryString) : array {
  return [
    'openid_connect_destination' => [
      $path,
      [
        'query' => $queryString,
      ],
    ],
  ];
}