Skip to content

[1.x] fix(tests): call app() before resolving cache.store in DeleteTest - #4403

Merged
imorland merged 1 commit into
1.xfrom
im/fix-delete-notifications-test-cache
Mar 6, 2026
Merged

[1.x] fix(tests): call app() before resolving cache.store in DeleteTest#4403
imorland merged 1 commit into
1.xfrom
im/fix-delete-notifications-test-cache

Conversation

@imorland

@imorland imorland commented Mar 6, 2026

Copy link
Copy Markdown
Member

Problem

The regression test added in #4391 calls resolve('cache.store') before $this->app(), so the container hasn't been bootstrapped yet and the cache.store binding doesn't exist — causing a test failure.

Fix

Add $this->app() before the resolve('cache.store') call in deleting_all_notifications_invalidates_unread_count_cache(), matching the pattern already used in the other test in the same file.

Related

`resolve('cache.store')` requires the container to be bootstrapped.
The new regression test in #4391 called it before `$this->app()`,
causing a binding resolution failure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imorland
imorland requested a review from a team as a code owner March 6, 2026 17:09
@imorland imorland added this to the 1.8.14 milestone Mar 6, 2026
@imorland
imorland merged commit f56591c into 1.x Mar 6, 2026
409 checks passed
@imorland
imorland deleted the im/fix-delete-notifications-test-cache branch March 6, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant