File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
app/Repositories/Backend/Access/Permission Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ public function delete($permission)
109109 DB ::transaction (function () use ($ permission ) {
110110 if ($ permission ->delete ()) {
111111 event (new PermissionDeleted ($ permission ));
112+
112113 return true ;
113114 }
114115
Original file line number Diff line number Diff line change 22
33namespace Tests \Feature \Backend ;
44
5- use Tests \TestCase ;
6- use Illuminate \Support \Facades \Event ;
7- use App \Models \Access \Permission \Permission ;
85use App \Events \Backend \Access \Permission \PermissionCreated ;
96use App \Events \Backend \Access \Permission \PermissionDeleted ;
107use App \Events \Backend \Access \Permission \PermissionUpdated ;
8+ use App \Models \Access \Permission \Permission ;
9+ use Illuminate \Support \Facades \Event ;
10+ use Tests \TestCase ;
1111
1212class ManagePermissionsTest extends TestCase
1313{
You can’t perform that action at this time.
0 commit comments