Bus::fake() Construct Error #43452
Unanswered
TroyDavidson
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Do you have what does |
Beta Was this translation helpful? Give feedback.
0 replies
-
I can confirm the behaviour on a new laravel application. Also, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a job that I need to test. I've added
Bus::fake()
to my test, but it's throwing an error.I've scaled the test way down and am still getting the error. Here is the test:
And this is the error:
I added an
echo " facade root: '" . static::getFacadeRoot() . "' ";
inside the fake() function:The getFacadeRoot doesn't return anything. I'm assuming this is the problem. I'm running the test with
php artisan test
.I'm sure I'm missing something, but can't figure out what. Any help would be great.
Beta Was this translation helpful? Give feedback.
All reactions