Added tests for new cases with non-locatable addresses

This commit is contained in:
Alejandro Celaya
2019-02-26 22:31:07 +01:00
parent 2d1d7357a3
commit 30bf1c2641
5 changed files with 131 additions and 6 deletions

View File

@@ -116,6 +116,11 @@ class ProcessVisitsCommandTest extends TestCase
$output = $this->commandTester->getDisplay();
$this->assertStringContainsString($message, $output);
if (empty($address)) {
$this->assertStringNotContainsString('Processing IP', $output);
} else {
$this->assertStringContainsString('Processing IP', $output);
}
$locateVisits->shouldHaveBeenCalledOnce();
$resolveIpLocation->shouldNotHaveBeenCalled();
}