aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auth/provider_oauth_token_storage_test.php
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-07-24 16:04:07 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-07-24 16:04:24 -0400
commit5052b80456972a56ef6c631cd61afbe127f47cab (patch)
tree0860d78d074e63c9c129685c948860b1b8b7decc /tests/auth/provider_oauth_token_storage_test.php
parentf8dbaa148dccb105133b5a91d58686d79f020afe (diff)
downloadforums-5052b80456972a56ef6c631cd61afbe127f47cab.tar
forums-5052b80456972a56ef6c631cd61afbe127f47cab.tar.gz
forums-5052b80456972a56ef6c631cd61afbe127f47cab.tar.bz2
forums-5052b80456972a56ef6c631cd61afbe127f47cab.tar.xz
forums-5052b80456972a56ef6c631cd61afbe127f47cab.zip
[feature/oauth] Refactor clear token test to get more useful output first
PHPBB3-11673
Diffstat (limited to 'tests/auth/provider_oauth_token_storage_test.php')
-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()