standalone: fix failing E2E test due to getting resource base URL
authorRich Lott / Artful Robot <code.commits@artfulrobot.uk>
Mon, 4 Dec 2023 18:54:39 +0000 (18:54 +0000)
committerRich Lott / Artful Robot <code.commits@artfulrobot.uk>
Tue, 5 Dec 2023 12:27:38 +0000 (12:27 +0000)
Fixes E2E\Core\PathUrlTest::testPaths_getUrl

CRM/Utils/System/Standalone.php

index 39b870ed4f9aae62b4a059e1f1915939a1b6b84a..b58bcbb3de9e8fe4ab7fe4f01612476091b1c86e 100644 (file)
@@ -387,7 +387,7 @@ class CRM_Utils_System_Standalone extends CRM_Utils_System_Base {
     }
 
     return [
-      'url' => CRM_Utils_File::addTrailingSlash('', '/'),
+      'url' => CRM_Utils_File::addTrailingSlash(CIVICRM_UF_BASEURL, '/') . '/core/',
       'path' => CRM_Utils_File::addTrailingSlash($civicrm_root),
     ];
   }