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

testConvertInsecureInstallationException() public method

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