Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 2e8e233f73c26da8680bb25399e94628c1cc6816 1 parent a479f32
mitchell amihod meeech authored jperras committed
2  cake/console/libs/tasks/test.php
View
@@ -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";
}
/**
4 cake/tests/cases/console/libs/tasks/test.test.php
View
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.