mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/oauth] Clear token storage test
PHPBB3-11673
This commit is contained in:
parent
d1f0ecca45
commit
c5d2b75022
1 changed files with 7 additions and 0 deletions
|
@ -118,7 +118,14 @@ class phpbb_auth_provider_oauth_token_storage_test extends phpbb_database_test_c
|
||||||
|
|
||||||
public function test_clearToken()
|
public function test_clearToken()
|
||||||
{
|
{
|
||||||
|
$token = new StdOAuth2Token('access', 'refresh', StdOAuth2Token::EOL_NEVER_EXPIRES, array('extra' => 'param') );
|
||||||
|
$this->token_storage->storeAccessToken($token);
|
||||||
|
|
||||||
|
$this->token_storage->clearToken();
|
||||||
|
|
||||||
|
$this->assertFalse($this->token_storage->hasAccessToken());
|
||||||
|
$row = $this->get_token_row_by_session_id($this->session_id());
|
||||||
|
$this->assertFalse($row);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_set_user_id()
|
public function test_set_user_id()
|
||||||
|
|
Loading…
Add table
Reference in a new issue