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