You are here

public function OpenIDConnectAuthmapTest::getUserLoadBySubParameters in OpenID Connect / OAuth client 8

Data provider for the userLoadBySubMethod().

Return value

array|array[] The parameters to pass to the userLoadBySubMethod.

File

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

Class

OpenIDConnectAuthmapTest
Test the OpenIdConnectAuthmap class.

Namespace

Drupal\Tests\openid_connect\Unit

Code

public function getUserLoadBySubParameters() : array {
  $test = (object) [
    'uid' => self::USER_ID,
  ];
  $results = [
    $test,
  ];
  return [
    [
      '',
      '',
      [],
    ],
    [
      'sub',
      '',
      [],
    ],
    [
      '',
      'client',
      [],
    ],
    [
      'sub',
      'client',
      [],
    ],
    [
      '',
      '',
      $results,
    ],
    [
      'sub',
      '',
      $results,
    ],
    [
      '',
      'client',
      $results,
    ],
    [
      'sub',
      'client',
      $results,
    ],
  ];
}