File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Spatie \Permission \Tests ;
4
4
5
- use Illuminate \Database \Eloquent \Model ;
6
5
use DB ;
6
+ use Illuminate \Database \Eloquent \Model ;
7
7
use Spatie \Permission \Contracts \Permission ;
8
8
use Spatie \Permission \Contracts \Role ;
9
9
use Spatie \Permission \Exceptions \GuardDoesNotMatch ;
@@ -779,7 +779,7 @@ public function it_can_be_given_a_permission_on_role_when_lazy_loading_is_restri
779
779
780
780
$ this ->assertTrue ($ testRole ->hasPermissionTo ('edit-articles ' ));
781
781
} catch (Exception $ e ) {
782
- $ this ->fail ('Lazy loading detected in the givePermissionTo method: ' . $ e ->getMessage ());
782
+ $ this ->fail ('Lazy loading detected in the givePermissionTo method: ' . $ e ->getMessage ());
783
783
}
784
784
}
785
785
@@ -796,7 +796,7 @@ public function it_can_be_given_a_permission_on_user_when_lazy_loading_is_restri
796
796
797
797
$ this ->assertTrue ($ testUser ->hasPermissionTo ('edit-articles ' ));
798
798
} catch (Exception $ e ) {
799
- $ this ->fail ('Lazy loading detected in the givePermissionTo method: ' . $ e ->getMessage ());
799
+ $ this ->fail ('Lazy loading detected in the givePermissionTo method: ' . $ e ->getMessage ());
800
800
}
801
801
}
802
802
}
Original file line number Diff line number Diff line change @@ -871,7 +871,7 @@ public function it_can_be_given_a_role_on_permission_when_lazy_loading_is_restri
871
871
872
872
$ this ->assertTrue ($ testPermission ->hasRole ('testRole ' ));
873
873
} catch (Exception $ e ) {
874
- $ this ->fail ('Lazy loading detected in the givePermissionTo method: ' . $ e ->getMessage ());
874
+ $ this ->fail ('Lazy loading detected in the givePermissionTo method: ' . $ e ->getMessage ());
875
875
}
876
876
}
877
877
@@ -887,8 +887,7 @@ public function it_can_be_given_a_role_on_user_when_lazy_loading_is_restricted()
887
887
888
888
$ this ->assertTrue ($ user ->hasRole ('testRole ' ));
889
889
} catch (Exception $ e ) {
890
- $ this ->fail ('Lazy loading detected in the givePermissionTo method: ' . $ e ->getMessage ());
890
+ $ this ->fail ('Lazy loading detected in the givePermissionTo method: ' . $ e ->getMessage ());
891
891
}
892
892
}
893
-
894
893
}
You can’t perform that action at this time.
0 commit comments