LegacyRestTest - No need to test `extern/rest.php` on `Standalone`
authorTim Otten <totten@civicrm.org>
Sat, 2 Dec 2023 12:45:18 +0000 (12:45 +0000)
committerTim Otten <totten@civicrm.org>
Sat, 2 Dec 2023 12:45:18 +0000 (12:45 +0000)
tests/phpunit/E2E/Extern/LegacyRestTest.php

index 26966d426aad05a68b9a338d4654031a5d462f3d..b967c96ac7111ad47a5bda920bdbd513400692b9 100644 (file)
  */
 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();
   }