File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 13
13
use Geocoder \Provider \GoogleMaps \GoogleMaps ;
14
14
15
15
return [
16
- 'cache-duraction ' => 999999999 ,
16
+ 'cache-duration ' => 999999999 ,
17
17
'providers ' => [
18
18
Chain::class => [
19
19
GoogleMaps::class => [
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function testItResolvesAGivenIPAddress()
67
67
68
68
// Act
69
69
$ results = app ('geocoder ' )
70
- ->geocode ('8.8.8.8 ' )
70
+ ->geocode ('72.229.28.185 ' )
71
71
->get ();
72
72
73
73
// Assert
@@ -154,7 +154,7 @@ public function testItThrowsAnExceptionForInvalidDumper()
154
154
155
155
public function testConfig ()
156
156
{
157
- $ this ->assertEquals (999999999 , config ('geocoder.cache-duraction ' ));
157
+ $ this ->assertEquals (999999999 , config ('geocoder.cache-duration ' ));
158
158
$ this ->assertTrue (is_array ($ providers = $ this ->app ['config ' ]->get ('geocoder.providers ' )));
159
159
$ this ->assertCount (3 , $ providers );
160
160
$ this ->assertArrayHasKey (GoogleMaps::class, $ providers [Chain::class]);
Original file line number Diff line number Diff line change 11
11
use Geocoder \Provider \Chain \Chain ;
12
12
use Geocoder \Provider \GeoPlugin \GeoPlugin ;
13
13
use Geocoder \Provider \GoogleMaps \GoogleMaps ;
14
+ use Geocoder \Provider \HostIp \HostIp ;
14
15
15
16
return [
16
- 'cache-duraction ' => 999999999 ,
17
+ 'cache-duration ' => 999999999 ,
17
18
'providers ' => [
18
19
Chain::class => [
19
20
GoogleMaps::class => [
You can’t perform that action at this time.
0 commit comments