You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coming here from: #31769. Could someone explain if I am doing something wrong.
I've updated tests as following, but still get an error when running tests:
Basically, my production code uses getEffectiveUri() for logging purposes and it works fine on production, but fails when running tests. To confirm that it works I created an artisan command artisan run:stuff, which correctly returns current URL used when making request.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Coming here from: #31769. Could someone explain if I am doing something wrong.
I've updated tests as following, but still get an error when running tests:
Basically, my production code uses getEffectiveUri() for logging purposes and it works fine on production, but fails when running tests. To confirm that it works I created an artisan command
artisan run:stuff
, which correctly returns current URL used when making request.Actual code:
Full repo here: https://github.com/vgedzius/laravel-http-client-test
Beta Was this translation helpful? Give feedback.
All reactions