From 3e7cbd7c0c87a215d414f669efb6651ad42688e2 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sat, 2 Dec 2023 12:45:18 +0000 Subject: [PATCH] LegacyRestTest - No need to test `extern/rest.php` on `Standalone` --- tests/phpunit/E2E/Extern/LegacyRestTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/E2E/Extern/LegacyRestTest.php b/tests/phpunit/E2E/Extern/LegacyRestTest.php index 26966d426a..b967c96ac7 100644 --- a/tests/phpunit/E2E/Extern/LegacyRestTest.php +++ b/tests/phpunit/E2E/Extern/LegacyRestTest.php @@ -16,9 +16,11 @@ */ class E2E_Extern_LegacyRestTest extends E2E_Extern_BaseRestTest { + protected $LEGACY_EXTERN_SUPPORTED = ['Drupal', 'Backdrop', 'Joomla', 'WordPress']; + protected function setUp(): void { - if (CIVICRM_UF === 'Drupal8') { - $this->markTestSkipped('Legacy extern/rest.php does not apply to Drupal 8+'); + if (!in_array(CIVICRM_UF, $this->LEGACY_EXTERN_SUPPORTED)) { + $this->markTestSkipped('Legacy extern/rest.php is not supported by ' . CIVICRM_UF); } parent::setUp(); } -- 2.25.1