[REF] Fix Unit test failure on WordPress due to changes in cv handling of URLs
authorSeamus Lee <seamuslee001@gmail.com>
Sun, 9 Jul 2023 08:35:51 +0000 (18:35 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Sun, 9 Jul 2023 08:35:51 +0000 (18:35 +1000)
tests/phpunit/E2E/Core/PathUrlTest.php

index c555ccc6f01dd06efd065304d14347b0c5b742a7..2fd0f4c121a0eedf73a589d8a4a39c46d22e11bd 100644 (file)
@@ -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);