Permalink
Browse files

Adding Test case option to bake main menu.

  • Loading branch information...
1 parent 267fcc1 commit dfa9ccdaf9a0f45d88283fd3747f21d4243dfbc2 @markstory markstory committed Aug 7, 2009
Showing with 6 additions and 2 deletions.
  1. +6 −2 cake/console/libs/bake.php
@@ -97,9 +97,10 @@ function main() {
$this->out('[C]ontroller');
$this->out('[P]roject');
$this->out('[F]ixture');
+ $this->out('[T]est case');
$this->out('[Q]uit');
- $classToBake = strtoupper($this->in(__('What would you like to Bake?', true), array('D', 'M', 'V', 'C', 'P', 'F', 'Q')));
+ $classToBake = strtoupper($this->in(__('What would you like to Bake?', true), array('D', 'M', 'V', 'C', 'P', 'F', 'T', 'Q')));
switch ($classToBake) {
case 'D':
$this->DbConfig->execute();
@@ -119,11 +120,14 @@ function main() {
case 'F':
$this->Fixture->execute();
break;
+ case 'T':
+ $this->Test->execute();
+ break;
case 'Q':
exit(0);
break;
default:
- $this->out(__('You have made an invalid selection. Please choose a type of class to Bake by entering D, M, V, F, or C.', true));
+ $this->out(__('You have made an invalid selection. Please choose a type of class to Bake by entering D, M, V, F, T, or C.', true));
}
$this->hr();
$this->main();

0 comments on commit dfa9ccd

Please sign in to comment.