Contao\CoreBundle\Test\EventListener\InsecureInstallationListenerTest::testOnKernelRequestWithSecureDocumentRoot PHP Method

testOnKernelRequestWithSecureDocumentRoot() public method

Tests the onKernelRequest() method with a secure document root.
    public function testOnKernelRequestWithSecureDocumentRoot()
    {
        $kernel = $this->mockKernel();
        $request = $this->getRequestObject();
        $request->server->set('REQUEST_URI', '/app_dev.php?do=test');
        $request->server->set('SCRIPT_FILENAME', $this->getRootDir() . '/app_dev.php');
        $event = new GetResponseEvent($kernel, $request, Kernel::MASTER_REQUEST);
        $listener = new InsecureInstallationListener();
        $listener->onKernelRequest($event);
    }