Skip to content

[13.x] Support enum queue names in QueueFake#60161

Merged
taylorotwell merged 1 commit into
laravel:13.xfrom
Tresor-Kasenda:queue-fake-unit-enum-queues
May 18, 2026
Merged

[13.x] Support enum queue names in QueueFake#60161
taylorotwell merged 1 commit into
laravel:13.xfrom
Tresor-Kasenda:queue-fake-unit-enum-queues

Conversation

@Tresor-Kasenda
Copy link
Copy Markdown
Contributor

Queue names passed as UnitEnum values are now normalized before being stored or queried, so fake queue assertions and inspection APIs behave consistently with string queue names.

Changes

  • Normalize queue names with enum_value() in QueueFake::push(), pushRaw(), size(), and pendingJobs().
  • Update queue-related docblocks to accept UnitEnum|string|null.
  • Add coverage for enum queue names with size, pendingJobs, bulk, pushOn, laterOn, and raw pushes.

@taylorotwell taylorotwell merged commit e48c51d into laravel:13.x May 18, 2026
52 of 54 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