-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d0afa58
commit f2ea1a2
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f2ea1a2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@driesvints @taylorotwell I just updated to 6.x and this commit broke my tests.
I have mocked the
\Illuminate\Contracts\Auth\Access\Gate
with Laravel 5.8. Now with 6.x I'm getting the real\Illuminate\Auth\Access\Gate
implementation when I call\Illuminate\Support\Facades\Gate::allows('foo')
. What was the reason why you changed it? The commit message is not really clear what is the intention.My workaround now is to explicitly unset the resolved Instance with
Facade::clearResolvedInstance(\Illuminate\Contracts\Auth\Access\Gate::class);
to always get the mock again.