We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ab7d2c commit 3c7d622Copy full SHA for 3c7d622
tests/Laravel5_3/Providers/GeocoderServiceTest.php
@@ -292,4 +292,13 @@ public function testItProvidesAdminLevel()
292
293
$this->assertEquals('District of Columbia', $results->first()->getAdminLevels()->first()->getName());
294
}
295
+
296
+ public function testItHandlesOnlyCityAndState()
297
+ {
298
+ $results = Geocoder::geocode('Seatle, WA')->get();
299
300
+ $this->assertEquals('Seattle', $results->first()->getLocality());
301
+ $this->assertEquals('Washington', $results->first()->getAdminLevels()->first()->getName());
302
+ $this->assertEquals('United States', $results->first()->getCountry()->getName());
303
+ }
304
0 commit comments