Gist 743c436c584f374ed5f6924b26cc1bde
✓ Published0🌍 Public
NNaoray
Last edited Mar 23, 2020
Created on Mar 23, 2020
This example demonstrates a testing helper for Laravel Nova that disables exception handling during feature tests. It defines a method `withoutNovaExceptionHandling` which accepts an array of exceptions to exclude, and uses Laravel’s `Nova::serving` event to trigger `withoutExceptionHandling` from the base test case whenever Nova is booting. The code relies on Laravel’s event system and PHP type declarations, showing integration between Nova’s life-cycle hooks and the framework’s testing utilities.
AI-generated description