fix: Undefined TESTS constants cause the "cake bake project" command to exit with an error

This commit is contained in:
Koji Tanaka 2023-03-12 13:16:17 +09:00 committed by Kamil Wylegala
parent 8b5e4fc29d
commit b5ebe993ad

View file

@ -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.
*