Skip to main content
You are currently viewing the documentation for Filament 3.x, which is a previous version of Filament.Looking for the current stable version? Visit the 5.x documentation.

Overview

All examples in this guide will be written using Pest. To use Pest’s Livewire plugin for testing, you can follow the installation instructions in the Pest documentation on plugins: Livewire plugin for Pest. However, you can easily adapt this to PHPUnit.

Testing session notifications

To check if a notification was sent using the session, use the assertNotified() helper:
You may optionally pass a notification title to test for:
Or test if the exact notification was sent:
Conversely, you can assert that a notification was not sent: