protected function ImplicitFunctionalTest::setUp in Simple OAuth (OAuth2) & OpenID Connect 8.4
Same name and namespace in other branches
- 5.x tests/src/Functional/ImplicitFunctionalTest.php \Drupal\Tests\simple_oauth\Functional\ImplicitFunctionalTest::setUp()
Overrides TokenBearerFunctionalTestBase::setUp
File
- tests/
src/ Functional/ ImplicitFunctionalTest.php, line 38
Class
- ImplicitFunctionalTest
- The implicit tests.
Namespace
Drupal\Tests\simple_oauth\FunctionalCode
protected function setUp() {
parent::setUp();
$this->redirectUri = Url::fromRoute('oauth2_token.test_token', [], [
'absolute' => TRUE,
])
->toString();
$this->client
->set('redirect', $this->redirectUri);
$this->client
->save();
$this->authorizeUrl = Url::fromRoute('oauth2_token.authorize');
$this
->grantPermissions(Role::load(RoleInterface::AUTHENTICATED_ID), [
'grant simple_oauth codes',
]);
}