From 17e549c231e537a3b81c7fee279a768d79f4497c Mon Sep 17 00:00:00 2001 From: Brabli <67018167+Brabli@users.noreply.github.com> Date: Thu, 21 Jul 2022 14:48:27 +0100 Subject: [PATCH] Create failing test --- tests/Trait/MappableTraitTest.php | 7 +++++++ 1 file changed, 7 insertions(+) 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