From 0c9a7bb5153dc6a1db0c9cc6eb30e3d4b932401a Mon Sep 17 00:00:00 2001 From: Kevin Cristiano Date: Thu, 7 Dec 2023 11:36:55 +0000 Subject: [PATCH] add Query to AssetBuilder test to fix WP failures Signed-off-by: Kevin Cristiano --- 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 dc4c2044f2..c39b4f04b3 100644 --- a/tests/phpunit/E2E/Core/PathUrlTest.php +++ b/tests/phpunit/E2E/Core/PathUrlTest.php @@ -115,7 +115,7 @@ class PathUrlTest extends \CiviEndToEndTestCase { $urlPatterns[] = [';civicrm(/|%2F)a(/|%2F).*#/mailing/new\?angularDebug=1;', \Civi::url('backend://civicrm/a/#/mailing/new?angularDebug=1')]; $urlPatterns[] = [';/jquery.timeentry.js\?r=.*#foo;', \Civi::url('asset://[civicrm.packages]/jquery/plugins/jquery.timeentry.js', 'c')->addFragment('foo')]; $urlPatterns[] = [';/stuff.js\?r=.*#foo;', \Civi::url('ext://org.civicrm.search_kit/stuff.js', 'c')->addFragment('foo')]; - $urlPatterns[] = [';#foo;', \Civi::url('assetBuilder://crm-l10n.js?locale=en_US')->addFragment('foo')]; + $urlPatterns[] = [';#foo;', \Civi::url('assetBuilder://crm-l10n.js?locale=en_US')->addFragment('foo')->addQuery(\CRM_Core_Resources::getL10nJsParams())]; // Some test-harnesses have HTTP_HOST. Some don't. It's pre-req for truly relative URLs. if (!empty($_SERVER['HTTP_HOST'])) { -- 2.25.1