From 2ebd86611a760b923752a6103e3f75d2bb94e048 Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Mon, 23 Jun 2014 23:59:45 +0200 Subject: [PATCH] [ticket/12716] Use a string as session_id PHPBB3-12716 --- tests/auth/fixtures/oauth_tokens.xml | 2 +- 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 @@ oauth_token 1 - 9999 + abcd auth.provider.oauth.service.testing {"token_class":"phpbb_not_a_token","accessToken":"error","refreshToken":0,"endOfLife":null,"extraParams":null} 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); }