Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.x] Add phpunit alias to sail binary #310

Merged
merged 2 commits into from Jan 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions bin/sail
Expand Up @@ -154,6 +154,19 @@ if [ $# -gt 0 ]; then
sail_is_not_running
fi

# Proxy the "phpunit" command to "php vendor/bin/phpunit"
elif [ "$1" == "phpunit" ]; then
shift 1

if [ "$EXEC" == "yes" ]; then
docker-compose exec \
-u sail
"$APP_SERVICE" \
php vendor/bin/phpunit "$@"
else
sail_is_not_running
fi

# Proxy the "dusk" command to the "php artisan dusk" Artisan command...
elif [ "$1" == "dusk" ]; then
shift 1
Expand Down