File tree Expand file tree Collapse file tree 2 files changed +21
-7
lines changed
tests/Laravel5_3/Providers Expand file tree Collapse file tree 2 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 9
9
"homepage" : " http://geocoder-php.org/" ,
10
10
"license" : " MIT" ,
11
11
"authors" : [
12
- {
13
- "name" : " Antoine Corcy" ,
14
- "email" : " contact@sbin.dk" ,
15
- "homepage" : " http://sbin.dk" ,
16
- "role" : " Developer"
17
- },
18
12
{
19
13
"name" : " Mike Bronner" ,
20
14
"email" : " hello@genealabs.com" ,
21
15
"homepage" : " https://genealabs.com" ,
22
- "role" : " developer"
16
+ "role" : " Developer, Maintainer"
17
+ },
18
+ {
19
+ "name" : " Antoine Corcy" ,
20
+ "email" : " contact@sbin.dk" ,
21
+ "homepage" : " http://sbin.dk" ,
22
+ "role" : " Original Creator"
23
23
}
24
24
],
25
25
"require" : {
Original file line number Diff line number Diff line change @@ -278,4 +278,18 @@ public function testJapaneseCharacterGeocoding()
278
278
$ this ->assertEquals ($ cacheKey , '108-0075e69db1e4baace983bde6b8afe58cbae6b8afe58d97efbc92e4b881e79baeefbc91efbc96efbc8defbc93 ' );
279
279
$ this ->assertTrue (app ('cache ' )->has ("geocoder- {$ cacheKey }" ));
280
280
}
281
+
282
+ public function testItProvidesState ()
283
+ {
284
+ $ results = Geocoder::geocode ('1600 Pennsylvania Ave., Washington, DC USA ' )->get ();
285
+
286
+ $ this ->assertEquals ('Washington ' , $ results ->first ()->getLocality ());
287
+ }
288
+
289
+ public function testItProvidesAdminLevel ()
290
+ {
291
+ $ results = Geocoder::geocode ('1600 Pennsylvania Ave., Washington, DC USA ' )->get ();
292
+
293
+ $ this ->assertEquals ('District of Columbia ' , $ results ->first ()->getAdminLevels ()->first ()->getName ());
294
+ }
281
295
}
You can’t perform that action at this time.
0 commit comments