From 4570ea17d7f68328a992a4a1b4502ecefec818f4 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 25 Feb 2022 16:54:28 -0800 Subject: [PATCH] AllFlowsTest - Make `testJwtMiddleware()` less sensitive to interactions with other tests --- ext/authx/tests/phpunit/Civi/Authx/AllFlowsTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/authx/tests/phpunit/Civi/Authx/AllFlowsTest.php b/ext/authx/tests/phpunit/Civi/Authx/AllFlowsTest.php index 026a05aada..b446671e1f 100644 --- a/ext/authx/tests/phpunit/Civi/Authx/AllFlowsTest.php +++ b/ext/authx/tests/phpunit/Civi/Authx/AllFlowsTest.php @@ -482,6 +482,8 @@ class AllFlowsTest extends \PHPUnit\Framework\TestCase implements EndToEndInterf * @throws \GuzzleHttp\Exception\GuzzleException */ public function testJwtMiddleware() { + \Civi::settings()->revert("authx_param_cred"); + // HTTP GET with a specific user. Choose flow automatically. $response = $this->createGuzzle()->get('civicrm/authx/id', [ 'authx_user' => $GLOBALS['_CV']['DEMO_USER'], -- 2.25.1