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); } }