From 668ef78ac3bafb8b01a681dff1074001a755bcd3 Mon Sep 17 00:00:00 2001 From: Seamus Lee <seamuslee001@gmail.com> Date: Sun, 9 Jul 2023 18:35:51 +1000 Subject: [PATCH] [REF] Fix Unit test failure on WordPress due to changes in cv handling of URLs --- tests/phpunit/E2E/Core/PathUrlTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/E2E/Core/PathUrlTest.php b/tests/phpunit/E2E/Core/PathUrlTest.php index c555ccc6f0..2fd0f4c121 100644 --- a/tests/phpunit/E2E/Core/PathUrlTest.php +++ b/tests/phpunit/E2E/Core/PathUrlTest.php @@ -103,7 +103,7 @@ class PathUrlTest extends \CiviEndToEndTestCase { // WORKAROUND: There's some issue where the URL gets a diff value in WP E2E env // than in normal WP env. The `cv url` command seems to behave more // representatively, though this technique is harder to inspect with xdebug. - $url = cv('url civicrm/contribute?reset=1'); + $url = cv('url civicrm/contribute?reset=1 --entry=backend'); // $url = \CRM_Utils_System::url('civicrm/contribute', 'reset=1', TRUE, NULL, FALSE); $parts = parse_url($url); -- 2.25.1