From b5ebe993add607fe1515dd299c7d3d5f7c12ff22 Mon Sep 17 00:00:00 2001 From: Koji Tanaka Date: Sun, 12 Mar 2023 13:16:17 +0900 Subject: [PATCH] fix: Undefined TESTS constants cause the "cake bake project" command to exit with an error --- lib/Cake/Console/Command/Task/TestTask.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Cake/Console/Command/Task/TestTask.php b/lib/Cake/Console/Command/Task/TestTask.php index 342494e57..a4c4e936b 100644 --- a/lib/Cake/Console/Command/Task/TestTask.php +++ b/lib/Cake/Console/Command/Task/TestTask.php @@ -19,6 +19,10 @@ App::uses('AppShell', 'Console/Command'); App::uses('BakeTask', 'Console/Command/Task'); App::uses('ClassRegistry', 'Utility'); +if (!defined('TESTS')) { + define('TESTS', APP . 'Test' . DS); +} + /** * Task class for creating and updating test files. *