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

testConvertNoLayoutSpecifiedException() public method

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