Skip to content

Commit

Permalink
Merge pull request #9 from Wingly-Company/fix-tests
Browse files Browse the repository at this point in the history
Use same location bias when testing autocomplete translation
  • Loading branch information
RenanWingly authored Apr 19, 2024
2 parents c02e722 + a89d418 commit 3cfdd16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/GoogleAutocompleteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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();

Expand Down

0 comments on commit 3cfdd16

Please sign in to comment.