mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-27 12:00:26 +02:00
[feature/oauth] Refactor clear token test to get more useful output first
PHPBB3-11673
This commit is contained in:
@@ -123,9 +123,12 @@ class phpbb_auth_provider_oauth_token_storage_test extends phpbb_database_test_c
|
|||||||
|
|
||||||
$this->token_storage->clearToken();
|
$this->token_storage->clearToken();
|
||||||
|
|
||||||
$this->assertFalse($this->token_storage->hasAccessToken());
|
// Check that the database has been cleared
|
||||||
$row = $this->get_token_row_by_session_id($this->session_id());
|
$row = $this->get_token_row_by_session_id($this->session_id);
|
||||||
$this->assertFalse($row);
|
$this->assertFalse($row);
|
||||||
|
|
||||||
|
// Check that the token is no longer in memory
|
||||||
|
$this->assertFalse($this->token_storage->hasAccessToken());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_set_user_id()
|
public function test_set_user_id()
|
||||||
|
Reference in New Issue
Block a user