From f5eb4a6ffc9d5be1b6700a57932597d1ecc9da4c Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sat, 20 May 2023 19:47:35 -0400 Subject: [PATCH] test for #26164 --- tests/phpunit/CRM/Core/Page/Inline/HelpTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/phpunit/CRM/Core/Page/Inline/HelpTest.php b/tests/phpunit/CRM/Core/Page/Inline/HelpTest.php index 0850857904..62523ab823 100644 --- a/tests/phpunit/CRM/Core/Page/Inline/HelpTest.php +++ b/tests/phpunit/CRM/Core/Page/Inline/HelpTest.php @@ -12,6 +12,7 @@ class CRM_Core_Page_Inline_HelpTest extends CiviUnitTestCase { public function fileTestCases(): array { $cases = []; $cases['relative paths are allowed'] = ['CRM/Admin/Form/Setting/Url', TRUE]; + $cases['sometimes civi does this on windows'] = ['CRM\\Admin\\Form\\Setting\\Url', TRUE]; $cases['absolute path are not allowed'] = [\Civi::paths()->getPath('[civicrm.root]/tests/phpunit/CiviTest/test'), FALSE]; $cases['valid but uses disallowed ..'] = ['CRM/Admin/Form/../Form/Setting/Url', FALSE]; $cases[] = ['.dot/not/allowed', FALSE]; -- 2.25.1