diff --git a/cake/tests/cases/console/libs/bake.test.php b/cake/tests/cases/console/libs/bake.test.php index 831456adf32..f8b20c3a52a 100644 --- a/cake/tests/cases/console/libs/bake.test.php +++ b/cake/tests/cases/console/libs/bake.test.php @@ -95,6 +95,11 @@ function endTest() { * @access public */ function testAllWithModelName() { + App::import('Model', 'User'); + $userExists = class_exists('User'); + if ($this->skipIf($userExists, 'User class exists, cannot test `bake all [param]`. %s')) { + return; + } $this->Shell->Model =& new BakeShellMockModelTask(); $this->Shell->Controller =& new BakeShellMockControllerTask(); $this->Shell->View =& new BakeShellMockModelTask();