You are here

protected function SimpleOauthAuthenticationTest::setUp in Simple OAuth (OAuth2) & OpenID Connect 8

Same name and namespace in other branches
  1. 8.4 tests/src/Unit/Authentication/Provider/SimpleOauthAuthenticationTest.php \Drupal\Tests\simple_oauth\Unit\Authentication\Provider\SimpleOauthAuthenticationTest::setUp()
  2. 8.2 tests/src/Unit/Authentication/Provider/SimpleOauthAuthenticationTest.php \Drupal\Tests\simple_oauth\Unit\Authentication\Provider\SimpleOauthAuthenticationTest::setUp()
  3. 8.3 tests/src/Unit/Authentication/Provider/SimpleOauthAuthenticationTest.php \Drupal\Tests\simple_oauth\Unit\Authentication\Provider\SimpleOauthAuthenticationTest::setUp()
  4. 5.x tests/src/Unit/Authentication/Provider/SimpleOauthAuthenticationTest.php \Drupal\Tests\simple_oauth\Unit\Authentication\Provider\SimpleOauthAuthenticationTest::setUp()

Overrides UnitTestCase::setUp

File

tests/src/Unit/Authentication/Provider/SimpleOauthAuthenticationTest.php, line 93

Class

SimpleOauthAuthenticationTest
Class SimpleOauthAuthenticationTest.

Namespace

Drupal\Tests\simple_oauth\Unit\Authentication\Provider

Code

protected function setUp() {
  parent::setUp();
  $config_factory = $this
    ->prophesize(ConfigFactoryInterface::class);
  $entity_manager = $this
    ->prophesize(EntityManagerInterface::class);
  $this->provider = new SimpleOauthAuthenticationProvider($config_factory
    ->reveal(), $entity_manager
    ->reveal());
}