Permalink
Browse files

Adding skip for BakeShell test, if a User class exists bake all canno…

…t be tested.
  • Loading branch information...
1 parent c669f8c commit 3edb84d77cc82383b433ec53e66f2e3065a95523 @markstory markstory committed Dec 20, 2009
Showing with 5 additions and 0 deletions.
  1. +5 −0 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();

0 comments on commit 3edb84d

Please sign in to comment.