File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -925,7 +925,8 @@ public function it_does_not_detach_roles_when_user_soft_deleting()
925
925
public function it_fires_an_event_when_a_role_is_added ()
926
926
{
927
927
Event::fake ();
928
-
928
+ app ('config ' )->set ('permission.events_enabled ' , true );
929
+
929
930
$ this ->testUser ->assignRole (['testRole ' , 'testRole2 ' ]);
930
931
931
932
$ roleIds = app (Role::class)::whereIn ('name ' , ['testRole ' , 'testRole2 ' ])
@@ -945,7 +946,8 @@ public function it_fires_an_event_when_a_role_is_added()
945
946
public function it_fires_an_event_when_a_role_is_removed ()
946
947
{
947
948
Event::fake ();
948
-
949
+ app ('config ' )->set ('permission.events_enabled ' , true );
950
+
949
951
$ this ->testUser ->assignRole ('testRole ' );
950
952
951
953
$ this ->testUser ->removeRole ('testRole ' );
You can’t perform that action at this time.
0 commit comments