Merge pull request #372 from shama/patch-controller-test-case

Fix overreaching Inflector when ControllerTestCase autoMocks
This commit is contained in:
Mark Story 2011-12-12 11:21:51 -08:00
commit 4a1a46a998

View file

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