Contao\CoreBundle\Test\EventListener\PrettyErrorScreenListenerTest::testNonExistingPageHandler PHP Method

testNonExistingPageHandler() public method

Tests rendering a non existing page handler.
    public function testNonExistingPageHandler()
    {
        $event = new GetResponseForExceptionEvent($this->mockKernel(), new Request(), HttpKernelInterface::MASTER_REQUEST, new AccessDeniedHttpException('', new AccessDeniedException()));
        $this->listener->onKernelException($event);
        $this->assertFalse($event->hasResponse());
    }