Fixing syntax error for baked component test case. Updated relevant

test case.

Fixes #342.

Signed-off-by: Joël Perras <joel.perras@gmail.com>
This commit is contained in:
Mitchell Amihod 2010-02-13 14:42:16 -05:00 committed by Joël Perras
parent a479f32da5
commit 2e8e233f73
2 changed files with 3 additions and 3 deletions

View file

@ -421,7 +421,7 @@ class TestTask extends Shell {
$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 file

@ -520,7 +520,7 @@ class TestTaskTest extends CakeTestCase {
* @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 @@ class TestTaskTest extends CakeTestCase {
$this->assertEqual($result, $expected);
$result = $this->Task->generateConstructor('helper', 'FormHelper');
$expected = "new FormHelper()\n";
$expected = "new FormHelper();\n";
$this->assertEqual($result, $expected);
}