diff --git a/lib/Cake/TestSuite/ControllerTestCase.php b/lib/Cake/TestSuite/ControllerTestCase.php index 9c62c3ecd67..2520512b32e 100644 --- a/lib/Cake/TestSuite/ControllerTestCase.php +++ b/lib/Cake/TestSuite/ControllerTestCase.php @@ -251,7 +251,7 @@ protected function _testAction($url = '', $options = array()) { $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') {