Navigation Menu

Skip to content

Commit

Permalink
classify the first cli argument for this task
Browse files Browse the repository at this point in the history
the $type is used to lookup in the $classTypes property what kind of
entity is being baked. if it's underscored, getRealClassName will bail
on it's first condition of "is it in the $classTypes property" producing
mostly useless test stubs for everything except models
  • Loading branch information
AD7six committed Apr 29, 2012
1 parent 6a744b2 commit 9444af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Console/Command/Task/TestTask.php
Expand Up @@ -77,7 +77,7 @@ public function execute() {
}

if (count($this->args) > 1) {
$type = Inflector::underscore($this->args[0]);
$type = Inflector::classify($this->args[0]);
if ($this->bake($type, $this->args[1])) {
$this->out('<success>Done</success>');
}
Expand Down

0 comments on commit 9444af2

Please sign in to comment.