-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract hashing and new password generation into methods
- Loading branch information
1 parent
f88192c
commit 684ce0b
Showing
2 changed files
with
21 additions
and
3 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
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
use DirectoryTree\Bartender\Tests\User; | ||
use DirectoryTree\Bartender\UserProviderRepository; | ||
use Illuminate\Database\QueryException; | ||
use Illuminate\Support\Facades\Hash; | ||
use Laravel\Socialite\Two\User as SocialiteUser; | ||
|
||
beforeEach(fn () => Bartender::setUserModel(User::class)); | ||
|
@@ -14,7 +15,7 @@ | |
'provider_name' => 'foo', | ||
'name' => 'foo', | ||
'email' => '[email protected]', | ||
'password' => bcrypt('password'), | ||
'password' => Hash::make('password'), | ||
]); | ||
|
||
$socialite = tap(new SocialiteUser(), function ($user) { | ||
|
@@ -31,7 +32,7 @@ | |
'provider_name' => null, | ||
'name' => 'foo', | ||
'email' => '[email protected]', | ||
'password' => bcrypt('password'), | ||
'password' => Hash::make('password'), | ||
]); | ||
|
||
$socialite = tap(new SocialiteUser(), function ($user) { | ||
|