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

testApiIsOriginAllowed_ReturnsTrue_WhenIpIsBlocked() public method

    public function testApiIsOriginAllowed_ReturnsTrue_WhenIpIsBlocked()
    {
        $ip = '50.50.50.50';
        $server = $this->createServer();
        $router = $this->createRouter($server);
        $router->allowOrigin($ip);
        $this->assertTrue($router->isOriginAllowed($ip));
    }
HttpRouterTest