mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-10 05:22:41 +00:00
Adding tests for other object types.
This commit is contained in:
parent
975aab8009
commit
66b36ba3b8
2 changed files with 12 additions and 4 deletions
|
@ -390,12 +390,12 @@ class TestTask extends Shell {
|
|||
function generateConstructor($type, $fullClassName) {
|
||||
$type = strtolower($type);
|
||||
if ($type == 'model') {
|
||||
return "ClassRegistry::init('$fullClassName');";
|
||||
return "ClassRegistry::init('$fullClassName');\n";
|
||||
}
|
||||
if ($type == 'controller') {
|
||||
return "new Test$fullClassName();\n\t\t\$this->{$fullClassName}->constructClasses();";
|
||||
return "new Test$fullClassName();\n\t\t\$this->{$fullClassName}->constructClasses();\n";
|
||||
}
|
||||
return "new $fullClassName";
|
||||
return "new $fullClassName()\n";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue