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

Add tests for InvokeSerializedClosureCommand #55281

Merged

Conversation

Amirhf1
Copy link
Contributor

@Amirhf1 Amirhf1 commented Apr 5, 2025

This PR adds comprehensive tests for the InvokeSerializedClosureCommand class located in the Concurrency component.

The tests cover the following scenarios:

  • Invoking a serialized closure from command argument
  • Invoking a serialized closure from environment variable
  • Default handling when no closure is provided
  • Proper exception handling
  • Custom exception parameters capture

These tests ensure that the command, which is used by the Concurrency system to execute serialized closures in separate processes, functions correctly in all scenarios.

@taylorotwell taylorotwell merged commit 8bb7e9d into laravel:12.x Apr 5, 2025
41 checks passed
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