File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
tests/Geocoder/Tests/Provider Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ public function geocode($address)
67
67
'locality ' => (isset ($ result ->city ->names ->{$ this ->locale }) ? $ result ->city ->names ->{$ this ->locale } : null ),
68
68
'latitude ' => (isset ($ result ->location ->latitude ) ? $ result ->location ->latitude : null ),
69
69
'longitude ' => (isset ($ result ->location ->longitude ) ? $ result ->location ->longitude : null ),
70
- 'timezone ' => (isset ($ result ->location ->timezone ) ? $ result ->location ->timezone : null ),
71
- 'postalCode ' => (isset ($ result ->location ->postalcode ) ? $ result ->location ->postalcode : null ),
70
+ 'timezone ' => (isset ($ result ->location ->time_zone ) ? $ result ->location ->time_zone : null ),
71
+ 'postalCode ' => (isset ($ result ->location ->postal_code ) ? $ result ->location ->postal_code : null ),
72
72
'region ' => $ region ,
73
73
'regionCode ' => $ regionCode
74
74
)))
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ public static function provideDataForRetrievingGeodata()
94
94
'regionCode ' => 'HH ' ,
95
95
'country ' => 'Germany ' ,
96
96
'countryCode ' => 'DE ' ,
97
- 'timezone ' => null ,
97
+ 'timezone ' => ' Europe/Berlin ' ,
98
98
)
99
99
),
100
100
'Response with all data null ' => array (
You can’t perform that action at this time.
0 commit comments