aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auth/provider_oauth_token_storage_test.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/auth/provider_oauth_token_storage_test.php b/tests/auth/provider_oauth_token_storage_test.php
index fced3184df..789b642ed5 100644
--- a/tests/auth/provider_oauth_token_storage_test.php
+++ b/tests/auth/provider_oauth_token_storage_test.php
@@ -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()