mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
fix: Undefined TESTS constants cause the "cake bake project" command to exit with an error
This commit is contained in:
parent
8b5e4fc29d
commit
b5ebe993ad
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue