mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #372 from shama/patch-controller-test-case
Fix overreaching Inflector when ControllerTestCase autoMocks
This commit is contained in:
commit
4a1a46a998
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']) . '.';
|
||||
if ($this->controller === null && $this->autoMock) {
|
||||
$this->generate(Inflector::camelize($plugin . $request->params['controller']));
|
||||
$this->generate($plugin . Inflector::camelize($request->params['controller']));
|
||||
}
|
||||
$params = array();
|
||||
if ($options['return'] == 'result') {
|
||||
|
|
Loading…
Reference in a new issue