mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 12:02:41 +00:00
No startup and teardown for controller tests
and.. no startup/teardown functions unless they are actually going to do more than just call parent
This commit is contained in:
parent
51635c2ca6
commit
a5fabcc1dc
2 changed files with 2 additions and 5 deletions
|
@ -459,11 +459,6 @@ class TestTask extends BakeTask {
|
|||
if ($type == 'behavior') {
|
||||
$construct = "new $fullClassName();\n";
|
||||
}
|
||||
if ($type == 'controller') {
|
||||
$className = substr($fullClassName, 0, -10);
|
||||
$construct = "new $fullClassName();\n";
|
||||
$post = "\$this->{$className}->constructClasses();\n";
|
||||
}
|
||||
if ($type == 'helper') {
|
||||
$pre = "\$View = new View();\n";
|
||||
$construct = "new {$fullClassName}(\$View);\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue