From e614f9dec94b9346badfc75a986d8cb380cb4d02 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 22 Feb 2022 20:52:00 -0800 Subject: [PATCH] Skip `testNotCMSUser_q` in some environments (based on `isOldQSupported()`) --- tests/phpunit/E2E/Extern/BaseRestTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/phpunit/E2E/Extern/BaseRestTest.php b/tests/phpunit/E2E/Extern/BaseRestTest.php index 199dd1069f..421fdaa5a2 100644 --- a/tests/phpunit/E2E/Extern/BaseRestTest.php +++ b/tests/phpunit/E2E/Extern/BaseRestTest.php @@ -315,6 +315,9 @@ abstract class E2E_Extern_BaseRestTest extends CiviEndToEndTestCase { * a real user. Submit in "?q=civicrm/$entity/$action" notation */ public function testNotCMSUser_q() { + if (!$this->isOldQSupported()) { + $this->markTestSkipped('rest.php?q=civicrm/ENTITY/ACTION is not supported here'); + } $http = $this->createGuzzle(['http_errors' => FALSE]); //Create contact with api_key -- 2.25.1