-
Notifications
You must be signed in to change notification settings - Fork 0
testing
Jacob Martella edited this page Oct 16, 2025
·
1 revision
This repository uses Pest. You can run the test suite locally to verify everything is working as expected.
composer test- For actions, assert side-effects (logs, dispatched jobs, method calls, etc.).
- For filters, assert input → output transformations.
Example with filters:
use function addFilter;
use function applyFilters;
it('formats currency display', function () {
addFilter('price.display', fn ($price, $currency) => $currency.' '.$price);
$result = applyFilters('price.display', '49.00', 'USD');
expect($result)->toBe('USD 49.00');
});See also: Actions and Filters.
Continue to FAQ →