Skip to content
Permalink
Browse files

Use setter on Controller.

  • Loading branch information...
dereuromark committed Sep 27, 2018
1 parent 2e95a15 commit 4f174c11c9db24afb05d9065cc2a604fdb92b00e
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/TestCase/Controller/Component/RequestHandlerComponentTest.php
@@ -530,7 +530,7 @@ public function testNoViewClassExtension()
public function testUnrecognizedExtensionFailure()
{
Router::extensions(['json', 'foo'], false);
$this->Controller->request = $this->Controller->request->withParam('_ext', 'foo');
$this->Controller->setRequest($this->Controller->request->withParam('_ext', 'foo'));
$event = new Event('Controller.startup', $this->Controller);
$this->RequestHandler->startup($event);
$this->Controller->getEventManager()->on('Controller.beforeRender', function () {

0 comments on commit 4f174c1

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