1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 03:54:10 +01:00

[feature/oauth] Clear token storage test

PHPBB3-11673
This commit is contained in:
Joseph Warner 2013-07-24 16:00:18 -04:00
parent d1f0ecca45
commit c5d2b75022

View File

@ -118,7 +118,14 @@ class phpbb_auth_provider_oauth_token_storage_test extends phpbb_database_test_c
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()