#2672: fixed model task unit test baking

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5243 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-06-04 19:53:22 +00:00
parent 68113a4a9a
commit 661b32a241

View file

@ -567,7 +567,7 @@ class ModelTask extends Shell {
function __bakeTest($className) {
$out = '<?php '."\n\n";
$out .= "loadModel('$className');\n\n";
$out .= "class {$className}TestCase extends UnitTestCase {\n";
$out .= "class {$className}TestCase extends CakeTestCase {\n";
$out .= "\tvar \$TestObject = null;\n\n";
$out .= "\tfunction setUp() {\n\t\t\$this->TestObject = new {$className}();\n";
$out .= "\t}\n\n\tfunction tearDown() {\n\t\tunset(\$this->TestObject);\n\t}\n";