Kraken\_Unit\Network\Http\Component\Router\HttpRouterTest::testApiDisallowOrigin_UnblocksAddress PHP Метод

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

    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