mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fix overreaching Inflector when ControllerTestCase autoMocks
This commit is contained in:
parent
8bb6f8803c
commit
096ff76295
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ abstract class ControllerTestCase extends CakeTestCase {
|
||||||
|
|
||||||
$plugin = empty($request->params['plugin']) ? '' : Inflector::camelize($request->params['plugin']) . '.';
|
$plugin = empty($request->params['plugin']) ? '' : Inflector::camelize($request->params['plugin']) . '.';
|
||||||
if ($this->controller === null && $this->autoMock) {
|
if ($this->controller === null && $this->autoMock) {
|
||||||
$this->generate(Inflector::camelize($plugin . $request->params['controller']));
|
$this->generate($plugin . Inflector::camelize($request->params['controller']));
|
||||||
}
|
}
|
||||||
$params = array();
|
$params = array();
|
||||||
if ($options['return'] == 'result') {
|
if ($options['return'] == 'result') {
|
||||||
|
|
Loading…
Reference in a new issue