@@ -165,7 +165,7 @@ public function testGeocoder()
165
165
166
166
public function testCacheIsUsed ()
167
167
{
168
- $ cacheKey = str_slug (strtolower (urlencode ('1600 Pennsylvania Ave NW, Washington, DC 20500, USA ' )));
168
+ $ cacheKey = md5 ( str_slug (strtolower (urlencode ('1600 Pennsylvania Ave NW, Washington, DC 20500, USA ' ) )));
169
169
170
170
$ result = app ('geocoder ' )->geocode ('1600 Pennsylvania Ave NW, Washington, DC 20500, USA ' )
171
171
->get ();
@@ -265,14 +265,14 @@ public function testGetProvider()
265
265
266
266
public function testJapaneseCharacterGeocoding ()
267
267
{
268
- $ cacheKey = str_slug (strtolower (urlencode ('108-0075 東京都港区港南2丁目16-3 ' )));
268
+ $ cacheKey = md5 ( str_slug (strtolower (urlencode ('108-0075 東京都港区港南2丁目16-3 ' ) )));
269
269
270
270
app ('geocoder ' )->geocode ('108-0075 東京都港区港南2丁目16-3 ' )
271
271
->get ();
272
272
273
273
$ this ->assertEquals (
274
274
$ cacheKey ,
275
- '108-0075e69db1e4baace983bde6b8afe58cbae6b8afe58d97efbc92e4b881e79baeefbc91efbc96efbc8defbc93 '
275
+ md5 ( '108-0075e69db1e4baace983bde6b8afe58cbae6b8afe58d97efbc92e4b881e79baeefbc91efbc96efbc8defbc93 ' )
276
276
);
277
277
$ this ->assertTrue (app ('cache ' )->has ("geocoder- {$ cacheKey }" ));
278
278
}
@@ -304,7 +304,7 @@ public function testItHandlesOnlyCityAndState()
304
304
305
305
public function testEmptyResultsAreNotCached ()
306
306
{
307
- $ cacheKey = str_slug (strtolower (urlencode ('_ ' )));
307
+ $ cacheKey = md5 ( str_slug (strtolower (urlencode ('_ ' ) )));
308
308
309
309
Geocoder::geocode ('_ ' )->get ();
310
310
0 commit comments