Skip to content

Commit

Permalink
Fix overreaching Inflector when ControllerTestCase autoMocks
Browse files Browse the repository at this point in the history
  • Loading branch information
shama committed Dec 12, 2011
1 parent 8bb6f88 commit 096ff76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/TestSuite/ControllerTestCase.php
Expand Up @@ -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') {
Expand Down

0 comments on commit 096ff76

Please sign in to comment.