From bc1be601c0afb921837822c1752b19ddd59a333d Mon Sep 17 00:00:00 2001 From: Rich Lott / Artful Robot Date: Sat, 2 Dec 2023 12:47:10 +0000 Subject: [PATCH] "Fix" test fail E2E_Extern_WidgetTest::testWidget by skipping it Drupal8+ does not support the extern widgets, so we do the same for standalone. As agreed with @totten --- tests/phpunit/E2E/Extern/WidgetTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/E2E/Extern/WidgetTest.php b/tests/phpunit/E2E/Extern/WidgetTest.php index 4320e7942a..2169d84072 100644 --- a/tests/phpunit/E2E/Extern/WidgetTest.php +++ b/tests/phpunit/E2E/Extern/WidgetTest.php @@ -26,7 +26,8 @@ class E2E_Extern_WidgetTest extends CiviEndToEndTestCase { * Return widget Javascript. */ public function testWidget(): void { - if (CIVICRM_UF !== 'Drupal8') { + if (!in_array(CIVICRM_UF, ['Drupal8', 'Standalone'])) { + // Skip the traditional tests for Drupal8+ and Standalone as these are unsupported. $endpoints['traditional'] = CRM_Core_Resources::singleton()->getUrl('civicrm', 'extern/widget.php'); } $endpoints['normal'] = CRM_Utils_System::url('civicrm/contribute/widget', NULL, TRUE, NULL, FALSE, TRUE); -- 2.25.1