-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
650d7e9
commit 41977f3
Showing
2 changed files
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -636,7 +636,7 @@ public function it_can_sync_permissions_to_a_model_that_is_not_persisted() | |
$user = new User(['email' => '[email protected]']); | ||
$user->syncPermissions('edit-articles'); | ||
$user->save(); | ||
$user->save(); // test save same model twice | ||
$user->save(); // test save same model twice | ||
|
||
$this->assertTrue($user->hasPermissionTo('edit-articles')); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -341,7 +341,7 @@ public function it_will_sync_roles_to_a_model_that_is_not_persisted() | |
$user = new User(['email' => '[email protected]']); | ||
$user->syncRoles([$this->testUserRole]); | ||
$user->save(); | ||
$user->save(); // test save same model twice | ||
$user->save(); // test save same model twice | ||
|
||
$this->assertTrue($user->hasRole($this->testUserRole)); | ||
|
||
|
@@ -831,9 +831,7 @@ public function it_throws_an_exception_if_an_unsupported_type_is_passed_to_hasRo | |
{ | ||
$this->expectException(\TypeError::class); | ||
|
||
$this->testUser->hasRole(new class | ||
{ | ||
}); | ||
$this->testUser->hasRole(new class {}); | ||
} | ||
|
||
/** @test */ | ||
|