diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-06-23 23:59:45 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-06-23 23:59:45 +0200 |
commit | 2ebd86611a760b923752a6103e3f75d2bb94e048 (patch) | |
tree | 55aa414cf2da0373bac2088c8f579e739d30fb5b | |
parent | 8595b2ae86ca14c83d8a61241fadec9f72a730c3 (diff) | |
download | forums-2ebd86611a760b923752a6103e3f75d2bb94e048.tar forums-2ebd86611a760b923752a6103e3f75d2bb94e048.tar.gz forums-2ebd86611a760b923752a6103e3f75d2bb94e048.tar.bz2 forums-2ebd86611a760b923752a6103e3f75d2bb94e048.tar.xz forums-2ebd86611a760b923752a6103e3f75d2bb94e048.zip |
[ticket/12716] Use a string as session_id
PHPBB3-12716
-rw-r--r-- | tests/auth/fixtures/oauth_tokens.xml | 2 | ||||
-rw-r--r-- | tests/auth/provider_oauth_token_storage_test.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/auth/fixtures/oauth_tokens.xml b/tests/auth/fixtures/oauth_tokens.xml index cffa02a39d..6c82e94e62 100644 --- a/tests/auth/fixtures/oauth_tokens.xml +++ b/tests/auth/fixtures/oauth_tokens.xml @@ -7,7 +7,7 @@ <column>oauth_token</column> <row> <value>1</value> - <value>9999</value> + <value>abcd</value> <value>auth.provider.oauth.service.testing</value> <value>{"token_class":"phpbb_not_a_token","accessToken":"error","refreshToken":0,"endOfLife":null,"extraParams":null}</value> </row> diff --git a/tests/auth/provider_oauth_token_storage_test.php b/tests/auth/provider_oauth_token_storage_test.php index 8919345087..45daa9816b 100644 --- a/tests/auth/provider_oauth_token_storage_test.php +++ b/tests/auth/provider_oauth_token_storage_test.php @@ -77,7 +77,7 @@ class phpbb_auth_provider_oauth_token_storage_test extends phpbb_database_test_c public function test_retrieveAccessToken_wrong_token() { - $this->user->data['session_id'] = 9999; + $this->user->data['session_id'] = 'abcd'; try { $this->token_storage->retrieveAccessToken($this->service_name); @@ -87,7 +87,7 @@ class phpbb_auth_provider_oauth_token_storage_test extends phpbb_database_test_c { } - $row = $this->get_token_row_by_session_id(9999); + $row = $this->get_token_row_by_session_id('abcd'); $this->assertFalse($row); } |