@@ -18,8 +18,10 @@ class GeocoderServiceProviderTest extends TestCase
1818{
1919 public function testConfig ()
2020 {
21- $ this ->assertContains ('Geocoder\Provider\FreeGeoIpProvider ' , $ this ->app ['config ' ]->get ('geocoder-laravel::providers ' ));
22- $ this ->assertSame ('Geocoder\HttpAdapter\CurlHttpAdapter ' , $ this ->app ['config ' ]->get ('geocoder-laravel::adapter ' ));
21+ $ this ->assertTrue (is_array ($ providers = $ this ->app ['config ' ]->get ('geocoder-laravel::providers ' )));
22+ $ this ->assertContains ('Geocoder \\Provider \\GoogleMapsProvider ' , $ providers );
23+ $ this ->assertContains ('Geocoder \\Provider \\FreeGeoIpProvider ' , $ providers );
24+ $ this ->assertSame ('Geocoder \\HttpAdapter \\CurlHttpAdapter ' , $ this ->app ['config ' ]->get ('geocoder-laravel::adapter ' ));
2325 }
2426
2527 public function testLoadedProviders ()
@@ -42,9 +44,9 @@ public function testGeocoderChainProvider()
4244
4345 public function testGeocoderDefaultProvider ()
4446 {
45- $ providersArray = $ this ->getProtectedProperty ($ this ->app ['geocoder.provider ' ], 'providers ' );
46- $ this ->assertInstanceOf ('Geocoder \\Provider \\FreeGeoIpProvider ' , $ providersArray [0 ]);
47+ $ providers = $ this ->getProtectedProperty ($ this ->app ['geocoder.provider ' ], 'providers ' );
4748
49+ $ this ->assertInstanceOf ('Geocoder \\Provider \\GoogleMapsProvider ' , $ providers [0 ]);
4850 }
4951
5052 public function testGeocoder ()
@@ -60,5 +62,4 @@ protected function getProtectedProperty($testObj, $propertyName)
6062
6163 return $ property ->getValue ($ testObj );
6264 }
63-
6465}
0 commit comments