diff --git a/tests/Trait/MappableTraitTest.php b/tests/Trait/MappableTraitTest.php index d92e865..45ca60b 100644 --- a/tests/Trait/MappableTraitTest.php +++ b/tests/Trait/MappableTraitTest.php @@ -75,6 +75,13 @@ class MappableTraitTest extends TestCase $this->assertTrue($this->obj->isGeocoded()); } + public function testIsGeocodeReturnsTrueIfLatAndLonAreBothZero(): void + { + $this->obj->setLatitude(0.000); + $this->obj->setLongitude(0.000); + $this->assertTrue($this->obj->isGeocoded()); + } + private function getTraitObject(): MappableInterface { return new class implements MappableInterface