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

[feature/oauth] Refactor clear token test to get more useful output first

PHPBB3-11673
This commit is contained in:
Joseph Warner 2013-07-24 16:04:07 -04:00
parent f8dbaa148d
commit 5052b80456

View File

@ -123,9 +123,12 @@ class phpbb_auth_provider_oauth_token_storage_test extends phpbb_database_test_c
$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()