From: Tim Otten Date: Sat, 2 Dec 2023 12:45:18 +0000 (+0000) Subject: LegacyRestTest - No need to test `extern/rest.php` on `Standalone` X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3e7cbd7c0c87a215d414f669efb6651ad42688e2;p=civicrm-core.git LegacyRestTest - No need to test `extern/rest.php` on `Standalone` --- 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(); }