Skip to content

Commit e907809

Browse files
committed
fix assert
1 parent 9e698a6 commit e907809

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/system/CommonHelperTest.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,14 @@ public function testNamespacedHelperFound(): void
169169

170170
Services::injectMock('locator', $locator);
171171

172-
helper('Tests\Support\Helpers\baguette');
172+
$found = true;
173+
174+
try {
175+
helper('Tests\Support\Helpers\baguette');
176+
} catch (FileNotFoundException) {
177+
$found = false;
178+
}
179+
180+
$this->assertTrue($found);
173181
}
174182
}

0 commit comments

Comments
 (0)