|
7 | 7 | use Geocoder\Laravel\ProviderAndDumperAggregator; |
8 | 8 | use Geocoder\Laravel\Providers\GeocoderService; |
9 | 9 | use Geocoder\Provider\Chain\Chain; |
10 | | -use Geocoder\Provider\FreeGeoIp\FreeGeoIp; |
| 10 | +use Geocoder\Provider\GeoPlugin\GeoPlugin; |
11 | 11 | use Geocoder\Provider\MaxMindBinary\MaxMindBinary; |
12 | 12 | use Geocoder\Provider\GoogleMaps\GoogleMaps; |
13 | 13 | use Geocoder\Query\GeocodeQuery; |
@@ -67,10 +67,8 @@ public function testItResolvesAGivenIPAddress() |
67 | 67 |
|
68 | 68 | // Act |
69 | 69 | $results = app('geocoder') |
70 | | - ->using('geo_plugin') |
71 | 70 | ->geocode('72.229.28.185') |
72 | 71 | ->get(); |
73 | | - dump($results, app('geocoder')); |
74 | 72 |
|
75 | 73 | // Assert |
76 | 74 | $this->assertEquals('US', $results->first()->getCountry()->getCode()); |
@@ -158,9 +156,9 @@ public function testConfig() |
158 | 156 | { |
159 | 157 | $this->assertEquals(999999999, config('geocoder.cache-duraction')); |
160 | 158 | $this->assertTrue(is_array($providers = $this->app['config']->get('geocoder.providers'))); |
161 | | - $this->assertCount(4, $providers); |
| 159 | + $this->assertCount(3, $providers); |
162 | 160 | $this->assertArrayHasKey(GoogleMaps::class, $providers[Chain::class]); |
163 | | - $this->assertArrayHasKey(FreeGeoIp::class, $providers[Chain::class]); |
| 161 | + $this->assertArrayHasKey(GeoPlugin::class, $providers[Chain::class]); |
164 | 162 | $this->assertSame(CurlAdapter::class, $this->app['config']->get('geocoder.adapter')); |
165 | 163 | } |
166 | 164 |
|
@@ -265,7 +263,7 @@ public function testFetchingAllResults() |
265 | 263 | public function testGetProviders() |
266 | 264 | { |
267 | 265 | $providers = app('geocoder')->getProviders(); |
268 | | - |
| 266 | + |
269 | 267 | $this->assertTrue($providers->has('chain')); |
270 | 268 | $this->assertTrue($providers->has('bing_maps')); |
271 | 269 | $this->assertTrue($providers->has('google_maps')); |
|
0 commit comments