From e9078096197820cfac2ee4c0f6c574588090e602 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Mon, 30 Dec 2024 21:07:07 +0700 Subject: [PATCH] fix assert --- tests/system/CommonHelperTest.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/system/CommonHelperTest.php b/tests/system/CommonHelperTest.php index 1ff0a1d2e201..8a41f7972a9e 100644 --- a/tests/system/CommonHelperTest.php +++ b/tests/system/CommonHelperTest.php @@ -169,6 +169,14 @@ public function testNamespacedHelperFound(): void Services::injectMock('locator', $locator); - helper('Tests\Support\Helpers\baguette'); + $found = true; + + try { + helper('Tests\Support\Helpers\baguette'); + } catch (FileNotFoundException) { + $found = false; + } + + $this->assertTrue($found); } }