We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74cd4cd commit d6cb75cCopy full SHA for d6cb75c
src/Illuminate/Support/Facades/Event.php
@@ -2,6 +2,7 @@
2
3
namespace Illuminate\Support\Facades;
4
5
+use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Support\Testing\Fakes\EventFake;
7
8
/**
@@ -16,7 +17,9 @@ class Event extends Facade
16
17
*/
18
public static function fake()
19
{
- static::swap(new EventFake);
20
+ static::swap($fake = new EventFake);
21
+
22
+ Model::setEventDispatcher($fake);
23
}
24
25
0 commit comments