[verb]Json() methods in tests are not obeying the config('app.url') after upgrading to 7.x #33366
-
I have upgraded the laravel version to 7.17.2 from 6.16.0 a few minutes ago following the upgrade guide. But my tests are now failing with the following exception: The Since the last upgrade, apparently the getJson(), postJson(), etc helper methods are not applying the URL from Is this behavior expected? If so, how does one overcome it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The problem also occurs when updated to v6.18.22 from v6.16.0 Something changed between these two versions. |
Beta Was this translation helpful? Give feedback.
-
I am using
|
Beta Was this translation helpful? Give feedback.
I am using
URL::forceRootUrl()
to solve this for the time being.