aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auth/provider_oauth_token_storage_test.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-12-30 11:36:08 +0100
committerMarc Alexander <admin@m-a-styles.de>2019-05-09 21:40:06 +0200
commitebac54aa9e705e99a562d2fe2c0f57bc6af8dd32 (patch)
treea6f45f42c8861ba60216517687bfe72084ba7dcb /tests/auth/provider_oauth_token_storage_test.php
parentd968392b4d4aa45afc7fbe75e0ad0a1d06e9275e (diff)
downloadforums-ebac54aa9e705e99a562d2fe2c0f57bc6af8dd32.tar
forums-ebac54aa9e705e99a562d2fe2c0f57bc6af8dd32.tar.gz
forums-ebac54aa9e705e99a562d2fe2c0f57bc6af8dd32.tar.bz2
forums-ebac54aa9e705e99a562d2fe2c0f57bc6af8dd32.tar.xz
forums-ebac54aa9e705e99a562d2fe2c0f57bc6af8dd32.zip
[ticket/14948] Adjust calls for twig and phpunit updates
PHPBB3-14948
Diffstat (limited to 'tests/auth/provider_oauth_token_storage_test.php')
-rw-r--r--tests/auth/provider_oauth_token_storage_test.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/auth/provider_oauth_token_storage_test.php b/tests/auth/provider_oauth_token_storage_test.php
index ae5de6aa7e..0c0e55dec6 100644
--- a/tests/auth/provider_oauth_token_storage_test.php
+++ b/tests/auth/provider_oauth_token_storage_test.php
@@ -25,7 +25,7 @@ class phpbb_auth_provider_oauth_token_storage_test extends phpbb_database_test_c
protected $state_table;
protected $user;
- protected function setup()
+ protected function setup(): void
{
parent::setUp();
@@ -73,7 +73,10 @@ class phpbb_auth_provider_oauth_token_storage_test extends phpbb_database_test_c
$token = $cache_token;
}
- $this->setExpectedException($exception);
+ if (!empty($exception))
+ {
+ $this->expectException($exception);
+ }
$stored_token = $this->token_storage->retrieveAccessToken($this->service_name);
$this->assertEquals($token, $stored_token);
@@ -120,7 +123,10 @@ class phpbb_auth_provider_oauth_token_storage_test extends phpbb_database_test_c
$token = $cache_token;
}
- $this->setExpectedException($exception);
+ if (!empty($exception))
+ {
+ $this->expectException($exception);
+ }
$stored_token = $this->token_storage->retrieve_access_token_by_session($this->service_name);
$this->assertEquals($token, $stored_token);