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

[11.x] Test abort behavior #51800

Merged
merged 1 commit into from
Jun 14, 2024
Merged

[11.x] Test abort behavior #51800

merged 1 commit into from
Jun 14, 2024

Conversation

seriquynh
Copy link
Contributor

I add some tests for abort behavior:

  • Application::abort() method throws NotFoundHttpException if code is 404.
  • Application::abort() method throws HttpException if code is not 404.
  • Application::abort() method accepts headers as an array.
  • abort() function receives code as a Symfony Response instance.
  • abort() function receives code as a Responable implementation.
  • abort() function forwards call to Application::abort() if code is not a Symfony Response instance or a Responable implementation.

Description copied from #51787.

@taylorotwell taylorotwell merged commit c9d9117 into laravel:11.x Jun 14, 2024
30 checks passed
@seriquynh seriquynh deleted the test-abort branch June 14, 2024 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants