From 0a4824534baa0c27eb99293385204386b984275d Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Wed, 5 Feb 2020 11:02:50 -0500 Subject: [PATCH] avoid backslash problems --- Civi/Test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Civi/Test.php b/Civi/Test.php index 7eb83cade1..b6f907585e 100644 --- a/Civi/Test.php +++ b/Civi/Test.php @@ -163,7 +163,7 @@ class Test { */ public static function codeGen() { if (!isset(self::$singletons['codeGen'])) { - $civiRoot = dirname(__DIR__); + $civiRoot = '.'; $codeGen = new \CRM_Core_CodeGen_Main("$civiRoot/CRM/Core/DAO", "$civiRoot/sql", $civiRoot, "$civiRoot/templates", NULL, "UnitTests", NULL, "$civiRoot/xml/schema/Schema.xml", NULL); $codeGen->init(); self::$singletons['codeGen'] = $codeGen; -- 2.25.1