|
@@ -334,6 +334,7 @@ abstract class ControllerTestCase extends CakeTestCase {
|
|
|
$request = $this->getMock('CakeRequest');
|
|
$request = $this->getMock('CakeRequest');
|
|
|
$response = $this->getMock('CakeResponse', array('_sendHeader'));
|
|
$response = $this->getMock('CakeResponse', array('_sendHeader'));
|
|
|
$controllerObj->__construct($request, $response);
|
|
$controllerObj->__construct($request, $response);
|
|
|
|
|
+ $controllerObj->Components->setController($controllerObj);
|
|
|
|
|
|
|
|
$config = ClassRegistry::config('Model');
|
|
$config = ClassRegistry::config('Model');
|
|
|
foreach ($mocks['models'] as $model => $methods) {
|
|
foreach ($mocks['models'] as $model => $methods) {
|