Contao\CoreBundle\Test\EventListener\ExceptionConverterListenerTest::testConvertForwardPageNotFoundException PHP Method

testConvertForwardPageNotFoundException() public method

Tests converting an ForwardPageNotFoundException exception.
    public function testConvertForwardPageNotFoundException()
    {
        $event = new GetResponseForExceptionEvent($this->mockKernel(), new Request(), HttpKernelInterface::MASTER_REQUEST, new ForwardPageNotFoundException());
        $listener = new ExceptionConverterListener();
        $listener->onKernelException($event);
        $exception = $event->getException();
        $this->assertInstanceOf('Contao\\CoreBundle\\Exception\\InternalServerErrorHttpException', $exception);
        $this->assertInstanceOf('Contao\\CoreBundle\\Exception\\ForwardPageNotFoundException', $exception->getPrevious());
    }