diff --git a/tests/Search/CombTest.php b/tests/Search/CombTest.php index 0bc820513b..13a73d620b 100644 --- a/tests/Search/CombTest.php +++ b/tests/Search/CombTest.php @@ -262,11 +262,7 @@ public function it_filters_out_results_with_disallowed_words() ['title' => 'Chicken & Sweetcorn Soup', 'ingredients' => ['Chicken', 'Sweetcorn', 'Water']], ]); - try { - $results = $comb->lookUp('soup -tomato'); - } catch (NoResultsFound $e) { - $results = []; - } + $results = $comb->lookUp('soup -tomato'); $this->assertEquals(['Chicken & Sweetcorn Soup'], collect($results['data'] ?? [])->pluck('data.title')->all()); }