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
During tests, the setUp method runs once per test method. It would be interesting to be able to run code once per test file class. I tried using the setUpBeforeClass method but things like running Artisan command, which would be very useful, fails - issue here.
This doesn't work. I receive an error A facade root has not been set. Probably because when the setUpBeforeClass method runs, the application is not fully instantiated.
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.
Uh oh!
There was an error while loading. Please reload this page.
-
During tests, the
setUp
method runs once per test method. It would be interesting to be able to run code once per test file class. I tried using thesetUpBeforeClass
method but things like running Artisan command, which would be very useful, fails - issue here.This doesn't work. I receive an error
A facade root has not been set
. Probably because when thesetUpBeforeClass
method runs, the application is not fully instantiated.Beta Was this translation helpful? Give feedback.
All reactions