Skip to content

Commit d1ba0c6

Browse files
committed
Update UserProviderQueryTest.php
1 parent edc56e8 commit d1ba0c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/UserProviderQueryTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use DirectoryTree\Bartender\Facades\Bartender;
44
use DirectoryTree\Bartender\Tests\User;
55
use DirectoryTree\Bartender\UserProviderRepository;
6-
use Illuminate\Database\UniqueConstraintViolationException;
6+
use Illuminate\Database\QueryException;
77
use Laravel\Socialite\Two\User as SocialiteUser;
88

99
beforeEach(fn () => Bartender::setUserModel(User::class));
@@ -94,7 +94,7 @@
9494
'password' => 'password',
9595
]);
9696

97-
$this->expectException(UniqueConstraintViolationException::class);
97+
$this->expectException(QueryException::class);
9898

9999
(new UserProviderRepository)->updateOrCreate('foo', $socialite);
100100
});
@@ -114,7 +114,7 @@
114114
'password' => 'password',
115115
]);
116116

117-
$this->expectException(UniqueConstraintViolationException::class);
117+
$this->expectException(QueryException::class);
118118

119119
(new UserProviderRepository)->updateOrCreate('bar', $socialite);
120120
});

0 commit comments

Comments
 (0)