Added test to cover new IP resolution API limits

This commit is contained in:
Alejandro Celaya
2018-08-04 15:50:02 +02:00
parent ed859767a8
commit 110e8cb78d
2 changed files with 53 additions and 0 deletions
@@ -65,4 +65,20 @@ class IpApiLocationResolverTest extends TestCase
->shouldBeCalledTimes(1);
$this->ipResolver->resolveIpLocation('1.2.3.4');
}
/**
* @test
*/
public function getApiIntervalReturnsExpectedValue()
{
$this->assertEquals(65, $this->ipResolver->getApiInterval());
}
/**
* @test
*/
public function getApiLimitReturnsExpectedValue()
{
$this->assertEquals(145, $this->ipResolver->getApiLimit());
}
}