From 096ff7629591795146d4e413eca823a9c7b43916 Mon Sep 17 00:00:00 2001 From: Kyle Robinson Young Date: Mon, 12 Dec 2011 10:29:33 -0800 Subject: [PATCH] Fix overreaching Inflector when ControllerTestCase autoMocks --- lib/Cake/TestSuite/ControllerTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') {