mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
parent
4d1f41dddc
commit
36eca679fe
1 changed files with 4 additions and 2 deletions
|
@ -229,8 +229,10 @@ abstract class ControllerTestCase extends CakeTestCase {
|
|||
$this->result = $Dispatch->dispatch($request, $Dispatch->response, $params);
|
||||
$this->controller = $Dispatch->testController;
|
||||
if ($options['return'] != 'result') {
|
||||
$this->vars = $this->controller->View->viewVars;
|
||||
$this->view = $this->controller->View->_viewNoLayout;
|
||||
if (isset($this->controller->View)) {
|
||||
$this->vars = $this->controller->View->viewVars;
|
||||
$this->view = $this->controller->View->_viewNoLayout;
|
||||
}
|
||||
$this->contents = $this->controller->response->body();
|
||||
}
|
||||
$this->headers = $Dispatch->response->header();
|
||||
|
|
Loading…
Reference in a new issue