diff options
author | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-24 16:00:18 -0400 |
---|---|---|
committer | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-24 16:00:31 -0400 |
commit | c5d2b75022f177ea04dfd0528cd54cd5d95ee16a (patch) | |
tree | a529d021db3fca3552381cce90681efed9571bec /tests/auth | |
parent | d1f0ecca453cb80509ba145863195816d8978f41 (diff) | |
download | forums-c5d2b75022f177ea04dfd0528cd54cd5d95ee16a.tar forums-c5d2b75022f177ea04dfd0528cd54cd5d95ee16a.tar.gz forums-c5d2b75022f177ea04dfd0528cd54cd5d95ee16a.tar.bz2 forums-c5d2b75022f177ea04dfd0528cd54cd5d95ee16a.tar.xz forums-c5d2b75022f177ea04dfd0528cd54cd5d95ee16a.zip |
[feature/oauth] Clear token storage test
PHPBB3-11673
Diffstat (limited to 'tests/auth')
-rw-r--r-- | tests/auth/provider_oauth_token_storage_test.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auth/provider_oauth_token_storage_test.php b/tests/auth/provider_oauth_token_storage_test.php index eb489410c7..1d5505ee8e 100644 --- a/tests/auth/provider_oauth_token_storage_test.php +++ b/tests/auth/provider_oauth_token_storage_test.php @@ -118,7 +118,14 @@ class phpbb_auth_provider_oauth_token_storage_test extends phpbb_database_test_c public function test_clearToken() { + $token = new StdOAuth2Token('access', 'refresh', StdOAuth2Token::EOL_NEVER_EXPIRES, array('extra' => 'param') ); + $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()); + $this->assertFalse($row); } public function test_set_user_id() |