Skip to content

Commit

Permalink
Use setter on Controller.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Sep 27, 2018
1 parent 2e95a15 commit 4f174c1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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 () {
Expand Down

0 comments on commit 4f174c1

Please sign in to comment.