Skip to content

Commit

Permalink
Adding skip for BakeShell test, if a User class exists bake all canno…
Browse files Browse the repository at this point in the history
…t be tested.
  • Loading branch information
markstory committed Dec 20, 2009
1 parent c669f8c commit 3edb84d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cake/tests/cases/console/libs/bake.test.php
Expand Up @@ -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();
Expand Down

0 comments on commit 3edb84d

Please sign in to comment.