projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e69022
)
dev/core#1594 [TEST] Fix running of unit tests within an extension
author
Seamus Lee
<seamuslee001@gmail.com>
Fri, 14 Feb 2020 19:51:51 +0000
(06:51 +1100)
committer
Seamus Lee
<seamuslee001@gmail.com>
Fri, 14 Feb 2020 19:51:51 +0000
(06:51 +1100)
Civi/Test.php
patch
|
blob
|
blame
|
history
diff --git
a/Civi/Test.php
b/Civi/Test.php
index b6f907585ec6ceb2d261ce93bd85ca4e38feeee1..50d6ebf31c4a39ee1d97fa1071b29516757eec2d 100644
(file)
--- a/
Civi/Test.php
+++ b/
Civi/Test.php
@@
-163,7
+163,7
@@
class Test {
*/
public static function codeGen() {
if (!isset(self::$singletons['codeGen'])) {
- $civiRoot =
'.'
;
+ $civiRoot =
str_replace(DIRECTORY_SEPARATOR, '/', dirname(__DIR__))
;
$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;