From 9444af2f81ea3c179deadf8e0c1826f4757facbc Mon Sep 17 00:00:00 2001 From: AD7six Date: Sun, 29 Apr 2012 17:16:29 +0200 Subject: [PATCH] classify the first cli argument for this task 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 --- lib/Cake/Console/Command/Task/TestTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Console/Command/Task/TestTask.php b/lib/Cake/Console/Command/Task/TestTask.php index 6b86f7fbe..1a3d1a0d7 100644 --- a/lib/Cake/Console/Command/Task/TestTask.php +++ b/lib/Cake/Console/Command/Task/TestTask.php @@ -77,7 +77,7 @@ class TestTask extends BakeTask { } 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('Done'); }