Permalink
Browse files

Fix missing behavior constructor.

  • Loading branch information...
1 parent fb7717c commit 752711e963d5f00da714b68b53e4b49740be0b85 @markstory markstory committed Jan 28, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Cake/Console/Command/Task/TestTask.php
@@ -444,6 +444,9 @@ public function generateConstructor($type, $fullClassName) {
if ($type == 'model') {
$construct = "ClassRegistry::init('$fullClassName');\n";
}
+ if ($type == 'behavior') {
+ $construct = "new $fullClassName();\n";
+ }
if ($type == 'controller') {
$className = substr($fullClassName, 0, strlen($fullClassName) - 10);
$construct = "new Test$fullClassName();\n";

0 comments on commit 752711e

Please sign in to comment.