Kraken\_Unit\Network\Http\Component\Router\HttpRouterTest::testApiDisallowOrigin_UnblocksAddress PHP Method

testApiDisallowOrigin_UnblocksAddress() public method

    public function testApiDisallowOrigin_UnblocksAddress()
    {
        $ip = '50.50.50.50';
        $server = $this->createServer();
        $router = $this->createRouter($server);
        $router->allowOrigin($ip);
        $this->assertTrue(array_key_exists($ip, $this->getProtectedProperty($router, 'allowedOrigins')));
        $router->disallowOrigin($ip);
        $this->assertFalse(array_key_exists($ip, $this->getProtectedProperty($router, 'allowedOrigins')));
    }
HttpRouterTest