Skip to content

Route always not defined #453

Answered by nelson6e65
rizkhal asked this question in Q&A
Discussion options

You must be logged in to vote

First, try to do not use route() helper, and use explicit URL instead for these kinds of tests.

Or/and add a test checking for "route exists" before.

Because "Route not defined" is an unrelated error and should be tested separately.

Also, I think the "route" helper is not ready yet for your defined routes in this lifecycle step, or cache is outdated. Try cleaning/refreshing the cache before running the tests.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rizkhal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants