Fix overreaching Inflector when ControllerTestCase autoMocks

This commit is contained in:
Kyle Robinson Young 2011-12-12 10:29:33 -08:00
parent 8bb6f8803c
commit 096ff76295

View file

@ -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') {