Permalink
Browse files

Fixing syntax error for baked component test case. Updated relevant

test case.

Fixes #342.

Signed-off-by: Joël Perras <joel.perras@gmail.com>
  • Loading branch information...
1 parent a479f32 commit 2e8e233f73c26da8680bb25399e94628c1cc6816 @meeech meeech committed with jperras Feb 13, 2010
Showing with 3 additions and 3 deletions.
  1. +1 −1 cake/console/libs/tasks/test.php
  2. +2 −2 cake/tests/cases/console/libs/tasks/test.test.php
View
2 cake/console/libs/tasks/test.php
@@ -421,7 +421,7 @@ function generateConstructor($type, $fullClassName) {
$className = substr($fullClassName, 0, strlen($fullClassName) - 10);
return "new Test$fullClassName();\n\t\t\$this->{$className}->constructClasses();\n";
}
- return "new $fullClassName()\n";
+ return "new $fullClassName();\n";
}
/**
View
4 cake/tests/cases/console/libs/tasks/test.test.php
@@ -520,7 +520,7 @@ function testBakeControllerTest() {
* @return void
* @access public
*/
- function testGenerateContsructor() {
+ function testGenerateConstructor() {
$result = $this->Task->generateConstructor('controller', 'PostsController');
$expected = "new TestPostsController();\n\t\t\$this->Posts->constructClasses();\n";
$this->assertEqual($result, $expected);
@@ -530,7 +530,7 @@ function testGenerateContsructor() {
$this->assertEqual($result, $expected);
$result = $this->Task->generateConstructor('helper', 'FormHelper');
- $expected = "new FormHelper()\n";
+ $expected = "new FormHelper();\n";
$this->assertEqual($result, $expected);
}

0 comments on commit 2e8e233

Please sign in to comment.