Updated IpLocation resolver to be able to provide limits in order to apply sleeps

This commit is contained in:
Alejandro Celaya
2018-08-02 23:02:48 +02:00
parent d54b823c88
commit ed859767a8
4 changed files with 48 additions and 0 deletions

View File

@@ -33,6 +33,8 @@ class ProcessVisitsCommandTest extends TestCase
{
$this->visitService = $this->prophesize(VisitService::class);
$this->ipResolver = $this->prophesize(IpApiLocationResolver::class);
$this->ipResolver->getApiLimit()->willReturn(10000000000);
$command = new ProcessVisitsCommand(
$this->visitService->reveal(),
$this->ipResolver->reveal(),