Config value is not replaced in test if it was wired via #[Config] #54986
-
Laravel Version12.1.1 PHP Version8.4.3 Database Driver & VersionNo response DescriptionIf I set config value with Steps To ReproduceDefault value of config Here is sample action:
And sample test:
here is dump while call MyTest.php
|
Beta Was this translation helpful? Give feedback.
Answered by
crynobone
Mar 12, 2025
Replies: 1 comment 1 reply
-
Controller are constructed way earlier in the request lifecycle, in tests it typically within |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
psprokofiev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Controller are constructed way earlier in the request lifecycle, in tests it typically within
setUp
.