This code seems obsolote
authorKlaas Eikelboom <klaas.eikelboom@civicoop.org>
Mon, 4 Oct 2021 19:35:05 +0000 (21:35 +0200)
committerTim Otten <totten@civicrm.org>
Sat, 5 Feb 2022 20:37:58 +0000 (12:37 -0800)
ext/authx/tests/phpunit/Civi/Authx/AllFlowsTest.php

index fa6b343bbff4ba3904197b03244b318e40b65e7e..3b63dda50a809d952ac9d9ebb309988b9236bd48 100644 (file)
@@ -181,13 +181,6 @@ class AllFlowsTest extends \PHPUnit\Framework\TestCase implements EndToEndInterf
       $this->markTestIncomplete("Cannot run test without CIVICRM_SITE_KEY");
     }
 
-    $addParam = function($request, $key, $value) {
-      $query = $request->getUri()->getQuery();
-      return $request->withUri(
-        $request->getUri()->withQuery($query . '&' . urlencode($key) . '=' . urlencode($value))
-      );
-    };
-
     [$credType, $flowType] = ['pass', 'header'];
     $http = $this->createGuzzle(['http_errors' => FALSE]);
     \Civi::settings()->set("authx_{$flowType}_cred", [$credType]);