Skip to content

Commit

Permalink
Fixing syntax error for baked component test case. Updated relevant
Browse files Browse the repository at this point in the history
test case.

Fixes #342.

Signed-off-by: Joël Perras <joel.perras@gmail.com>
  • Loading branch information
meeech authored and jperras committed Feb 13, 2010
1 parent a479f32 commit 2e8e233
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cake/console/libs/tasks/test.php
Expand Up @@ -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";
}

/**
Expand Down
4 changes: 2 additions & 2 deletions cake/tests/cases/console/libs/tasks/test.test.php
Expand Up @@ -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);
Expand All @@ -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);
}

Expand Down

0 comments on commit 2e8e233

Please sign in to comment.