Skip to content

Commit 8022fe7

Browse files
committed
Fix type in cache-duration key
1 parent daae482 commit 8022fe7

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

config/geocoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Geocoder\Provider\GoogleMaps\GoogleMaps;
1414

1515
return [
16-
'cache-duraction' => 999999999,
16+
'cache-duration' => 999999999,
1717
'providers' => [
1818
Chain::class => [
1919
GoogleMaps::class => [

tests/Laravel5_3/Providers/GeocoderServiceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function testItResolvesAGivenIPAddress()
6767

6868
// Act
6969
$results = app('geocoder')
70-
->geocode('8.8.8.8')
70+
->geocode('72.229.28.185')
7171
->get();
7272

7373
// Assert
@@ -154,7 +154,7 @@ public function testItThrowsAnExceptionForInvalidDumper()
154154

155155
public function testConfig()
156156
{
157-
$this->assertEquals(999999999, config('geocoder.cache-duraction'));
157+
$this->assertEquals(999999999, config('geocoder.cache-duration'));
158158
$this->assertTrue(is_array($providers = $this->app['config']->get('geocoder.providers')));
159159
$this->assertCount(3, $providers);
160160
$this->assertArrayHasKey(GoogleMaps::class, $providers[Chain::class]);

tests/assets/testConfig.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
use Geocoder\Provider\Chain\Chain;
1212
use Geocoder\Provider\GeoPlugin\GeoPlugin;
1313
use Geocoder\Provider\GoogleMaps\GoogleMaps;
14+
use Geocoder\Provider\HostIp\HostIp;
1415

1516
return [
16-
'cache-duraction' => 999999999,
17+
'cache-duration' => 999999999,
1718
'providers' => [
1819
Chain::class => [
1920
GoogleMaps::class => [

0 commit comments

Comments
 (0)