Contao\CoreBundle\Test\EventListener\ExceptionConverterListenerTest::testConvertIncompleteInstallationException PHP Метод

testConvertIncompleteInstallationException() публичный Метод

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