mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-02 09:32:43 +00:00
remove stub class from controller tests template and mock condition to
make it extends ControllerTestCase
This commit is contained in:
parent
a238116734
commit
c651bf25d3
2 changed files with 2 additions and 31 deletions
|
@ -460,7 +460,7 @@ class TestTask extends BakeTask {
|
|||
}
|
||||
if ($type == 'controller') {
|
||||
$className = substr($fullClassName, 0, -10);
|
||||
$construct = "new Test$fullClassName();\n";
|
||||
$construct = "new $fullClassName();\n";
|
||||
$post = "\$this->{$className}->constructClasses();\n";
|
||||
}
|
||||
if ($type == 'helper') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue