with docker compose: docker compose exec app php artisan test --filter <method_name> without docker compose: php artisan test --filter <method_name>