From a89d4184855f9f0bcf1e8c7e5ea2637a6acb5cb3 Mon Sep 17 00:00:00 2001 From: Renan Date: Fri, 19 Apr 2024 14:53:58 +0200 Subject: [PATCH] Use same location bias when testing autocomplete translation --- tests/GoogleAutocompleteTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/GoogleAutocompleteTest.php b/tests/GoogleAutocompleteTest.php index 7a09135..f0a6d35 100644 --- a/tests/GoogleAutocompleteTest.php +++ b/tests/GoogleAutocompleteTest.php @@ -28,7 +28,7 @@ public function test_it_should_return_an_empty_response_when_called_with_empty_q public function test_it_can_translate_the_data(): void { - $parisBias = 'circle:1000000@@48.8529674,2.3411474'; + $parisBias = 'circle:100000@48.8529674,2.3411474'; $results = GooglePlaces::autocomplete('paris') ->setLocationBias($parisBias) @@ -37,6 +37,7 @@ public function test_it_can_translate_the_data(): void $this->assertEquals('Paris, France', $results[0]['name']); $results = GooglePlaces::autocomplete('paris') + ->setLocationBias($parisBias) ->setLanguage('it') ->get();