From ee1b1a10dfff04af79947a6d15799d5b070fc2c6 Mon Sep 17 00:00:00 2001 From: bancer Date: Fri, 26 Oct 2018 15:52:39 +0200 Subject: [PATCH] Defines TESTS also after app bootstrap.php is loaded, #12636 --- lib/Cake/Core/Configure.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Cake/Core/Configure.php b/lib/Cake/Core/Configure.php index cba018c756c..901606cd238 100644 --- a/lib/Cake/Core/Configure.php +++ b/lib/Cake/Core/Configure.php @@ -114,6 +114,9 @@ public static function bootstrap($boot = true) { class_exists('Debugger'); class_exists('CakeText'); } + if (!defined('TESTS')) { + define('TESTS', APP . 'Test' . DS); + } } }