From 7079447949b6529d8a57faaae0e2eff1d51f4211 Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Wed, 22 Jan 2025 11:44:20 -0500 Subject: [PATCH] remove unnecessary error handling in test --- tests/Search/CombTest.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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()); }