Skip to content
This repository
Browse code

Fix missing behavior constructor.

  • Loading branch information...
commit 752711e963d5f00da714b68b53e4b49740be0b85 1 parent fb7717c
Mark Story authored January 27, 2012
3  lib/Cake/Console/Command/Task/TestTask.php
@@ -444,6 +444,9 @@ public function generateConstructor($type, $fullClassName) {
444 444
 		if ($type == 'model') {
445 445
 			$construct = "ClassRegistry::init('$fullClassName');\n";
446 446
 		}
  447
+		if ($type == 'behavior') {
  448
+			$construct = "new $fullClassName();\n";
  449
+		}
447 450
 		if ($type == 'controller') {
448 451
 			$className = substr($fullClassName, 0, strlen($fullClassName) - 10);
449 452
 			$construct = "new Test$fullClassName();\n";

0 notes on commit 752711e

Please sign in to comment.
Something went wrong with that request. Please try again.