File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
use DirectoryTree \Bartender \Facades \Bartender ;
4
4
use DirectoryTree \Bartender \Tests \User ;
5
5
use DirectoryTree \Bartender \UserProviderRepository ;
6
- use Illuminate \Database \UniqueConstraintViolationException ;
6
+ use Illuminate \Database \QueryException ;
7
7
use Laravel \Socialite \Two \User as SocialiteUser ;
8
8
9
9
beforeEach (fn () => Bartender::setUserModel (User::class));
94
94
'password ' => 'password ' ,
95
95
]);
96
96
97
- $ this ->expectException (UniqueConstraintViolationException ::class);
97
+ $ this ->expectException (QueryException ::class);
98
98
99
99
(new UserProviderRepository )->updateOrCreate ('foo ' , $ socialite );
100
100
});
114
114
'password ' => 'password ' ,
115
115
]);
116
116
117
- $ this ->expectException (UniqueConstraintViolationException ::class);
117
+ $ this ->expectException (QueryException ::class);
118
118
119
119
(new UserProviderRepository )->updateOrCreate ('bar ' , $ socialite );
120
120
});
You can’t perform that action at this time.
0 commit comments