mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 04:48:53 +00:00
[feature/oauth] Refactor clear token test to get more useful output first
PHPBB3-11673
This commit is contained in:
parent
f8dbaa148d
commit
5052b80456
1 changed files with 6 additions and 3 deletions
|
@ -122,10 +122,13 @@ class phpbb_auth_provider_oauth_token_storage_test extends phpbb_database_test_c
|
|||
$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());
|
||||
|
||||
// Check that the database has been cleared
|
||||
$row = $this->get_token_row_by_session_id($this->session_id);
|
||||
$this->assertFalse($row);
|
||||
|
||||
// Check that the token is no longer in memory
|
||||
$this->assertFalse($this->token_storage->hasAccessToken());
|
||||
}
|
||||
|
||||
public function test_set_user_id()
|
||||
|
|
Loading…
Add table
Reference in a new issue