From 48077b1ae94e04bdfdedc2897b7bb1f8fbf73d66 Mon Sep 17 00:00:00 2001 From: JonasVHG <4658984+JonasVHG@users.noreply.github.com> Date: Thu, 22 Aug 2024 12:49:08 +0200 Subject: [PATCH] make test for informal citynames. --- test/Widget/RegionServiceTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/Widget/RegionServiceTest.php b/test/Widget/RegionServiceTest.php index aad8f1a9..f63e378c 100644 --- a/test/Widget/RegionServiceTest.php +++ b/test/Widget/RegionServiceTest.php @@ -60,6 +60,19 @@ public function it_will_find_match_the_start_of_a_city_name() ); } + /** + * @test + */ + public function it_does_not_match_with_informal_names() + { + $this->assertEquals( + [ + 'nis-24008C' => 'Molenbeek-Wersbeek (Bekkevoort)', + ], + $this->regionService->getAutocompletResults('Molenbeek') + ); + } + /** * @test */