File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
tests/Laravel5_3/Providers Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -226,4 +226,22 @@ public function testItCanUseMaxMindBinaryWithoutProvider()
226
226
227
227
app ('geocoder ' )->registerProvider ($ provider );
228
228
}
229
+
230
+ public function testGetNameReturnsString ()
231
+ {
232
+ $ this ->assertEquals ('provider_aggregator ' , app ('geocoder ' )->getName ());
233
+ }
234
+
235
+ public function testLimitingOfResults ()
236
+ {
237
+ $ expectedLimit = 1 ;
238
+
239
+ app ('geocoder ' )->limit ($ expectedLimit );
240
+ $ actualLimit = app ('geocoder ' )->getLimit ();
241
+ $ results = app ('geocoder ' )->geocode ('1600 Pennsylvania Ave., Washington, DC USA ' )
242
+ ->get ();
243
+
244
+ $ this ->assertEquals ($ expectedLimit , $ actualLimit );
245
+ $ this ->assertEquals ($ expectedLimit , $ results ->count ());
246
+ }
229
247
}
You can’t perform that action at this time.
0 commit comments