Skip to content
Permalink
Browse files

Use getter methods instead of properties.

  • Loading branch information...
ADmad committed Sep 28, 2018
1 parent 4f174c1 commit 5e355eee0215c25ce0f57af534c149578459aaac
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/TestCase/Controller/Component/RequestHandlerComponentTest.php
@@ -530,11 +530,11 @@ public function testNoViewClassExtension()
public function testUnrecognizedExtensionFailure()
{
Router::extensions(['json', 'foo'], false);
$this->Controller->setRequest($this->Controller->request->withParam('_ext', 'foo'));
$this->Controller->setRequest($this->Controller->getRequest()->withParam('_ext', 'foo'));
$event = new Event('Controller.startup', $this->Controller);
$this->RequestHandler->startup($event);
$this->Controller->getEventManager()->on('Controller.beforeRender', function () {
return $this->Controller->response;
return $this->Controller->getResponse();
});
$this->Controller->render();
$this->assertEquals('RequestHandlerTest' . DS . 'csv', $this->Controller->viewBuilder()->getTemplatePath());

0 comments on commit 5e355ee

Please sign in to comment.
You can’t perform that action at this time.