@@ -39,9 +39,9 @@ public function it_deletes_pivot_table_entries_when_deleting_models()
39
39
/** @test */
40
40
public function it_can_assign_same_and_different_roles_on_same_user_different_teams ()
41
41
{
42
- app (Role::class)->create (['name ' => 'testRole3 ' ]); //team_test_id = 1 by main class
42
+ app (Role::class)->create (['name ' => 'testRole3 ' ]); // team_test_id = 1 by main class
43
43
app (Role::class)->create (['name ' => 'testRole3 ' , 'team_test_id ' => 2 ]);
44
- app (Role::class)->create (['name ' => 'testRole4 ' , 'team_test_id ' => null ]); //global role
44
+ app (Role::class)->create (['name ' => 'testRole4 ' , 'team_test_id ' => null ]); // global role
45
45
46
46
$ testRole3Team1 = app (Role::class)->where (['name ' => 'testRole3 ' , 'team_test_id ' => 1 ])->first ();
47
47
$ testRole3Team2 = app (Role::class)->where (['name ' => 'testRole3 ' , 'team_test_id ' => 2 ])->first ();
@@ -66,7 +66,7 @@ public function it_can_assign_same_and_different_roles_on_same_user_different_te
66
66
67
67
$ this ->testUser ->assignRole ('testRole3 ' , 'testRole4 ' );
68
68
$ this ->assertTrue ($ this ->testUser ->hasExactRoles (['testRole ' , 'testRole2 ' , 'testRole3 ' , 'testRole4 ' ]));
69
- $ this ->assertTrue ($ this ->testUser ->hasRole ($ testRole3Team1 )); //testRole3 team=1
69
+ $ this ->assertTrue ($ this ->testUser ->hasRole ($ testRole3Team1 )); // testRole3 team=1
70
70
$ this ->assertTrue ($ this ->testUser ->hasRole ($ testRole4NoTeam )); // global role team=null
71
71
72
72
setPermissionsTeamId (2 );
@@ -77,7 +77,7 @@ public function it_can_assign_same_and_different_roles_on_same_user_different_te
77
77
$ this ->testUser ->getRoleNames ()->sort ()->values ()
78
78
);
79
79
$ this ->assertTrue ($ this ->testUser ->hasExactRoles (['testRole ' , 'testRole3 ' ]));
80
- $ this ->assertTrue ($ this ->testUser ->hasRole ($ testRole3Team2 )); //testRole3 team=2
80
+ $ this ->assertTrue ($ this ->testUser ->hasRole ($ testRole3Team2 )); // testRole3 team=2
81
81
$ this ->testUser ->assignRole ('testRole4 ' );
82
82
$ this ->assertTrue ($ this ->testUser ->hasExactRoles (['testRole ' , 'testRole3 ' , 'testRole4 ' ]));
83
83
$ this ->assertTrue ($ this ->testUser ->hasRole ($ testRole4NoTeam )); // global role team=null
0 commit comments