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

testOnKernelRequestOnLocalhost() public method

Tests the onKernelRequest() method on localhost.
    public function testOnKernelRequestOnLocalhost()
    {
        $kernel = $this->mockKernel();
        $request = $this->getRequestObject();
        $request->server->set('REMOTE_ADDR', '127.0.0.1');
        $event = new GetResponseEvent($kernel, $request, Kernel::MASTER_REQUEST);
        $listener = new InsecureInstallationListener();
        $listener->onKernelRequest($event);
    }