Add test to return false on is geocoded if coords are 0 0
This commit is contained in:
@@ -75,11 +75,18 @@ final class GeocodeTraitTest extends TestCase
|
||||
$this->assertTrue($this->obj->isGeocoded());
|
||||
}
|
||||
|
||||
public function testIsGeocodeReturnsTrueIfLatAndLonAreBothZero(): void
|
||||
public function testIsGeocodedReturnsFalseIfLatAndLonAreBothZero(): void
|
||||
{
|
||||
$this->obj->setLatitude(0.000);
|
||||
$this->obj->setLongitude(0.000);
|
||||
$this->assertTrue($this->obj->isGeocoded());
|
||||
$this->assertFalse($this->obj->isGeocoded());
|
||||
}
|
||||
|
||||
public function testIsGeocodedReturnsFalseIfLatAndLonAreBothZeroInts(): void
|
||||
{
|
||||
$this->obj->setLatitude(0);
|
||||
$this->obj->setLongitude(0);
|
||||
$this->assertFalse($this->obj->isGeocoded());
|
||||
}
|
||||
|
||||
private function getTraitObject(): GeocodeInterface
|
||||
|
||||
Reference in New Issue
Block a user