Create failing test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user