mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
#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:
parent
68113a4a9a
commit
661b32a241
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue