diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-03-18 08:28:06 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-03-18 15:40:18 +0100 |
commit | 0d8b3baf61a87042e32e42325aae4f27252f0bd2 (patch) | |
tree | 2db143c95e65353663dd43784d6e32905aef8e96 /apps/user_status/tests | |
parent | b34035f845bffc5be044dd157d1675875e451cad (diff) | |
download | nextcloud-server-0d8b3baf61a87042e32e42325aae4f27252f0bd2.tar.gz nextcloud-server-0d8b3baf61a87042e32e42325aae4f27252f0bd2.zip |
Use executeQuery and executeUpdate in the QBMapper
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/user_status/tests')
-rw-r--r-- | apps/user_status/tests/Unit/Db/UserStatusMapperTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_status/tests/Unit/Db/UserStatusMapperTest.php b/apps/user_status/tests/Unit/Db/UserStatusMapperTest.php index e86cee6d68a..8cdaa5fd829 100644 --- a/apps/user_status/tests/Unit/Db/UserStatusMapperTest.php +++ b/apps/user_status/tests/Unit/Db/UserStatusMapperTest.php @@ -25,9 +25,9 @@ declare(strict_types=1); namespace OCA\UserStatus\Tests\Db; -use Doctrine\DBAL\Exception\UniqueConstraintViolationException; use OCA\UserStatus\Db\UserStatus; use OCA\UserStatus\Db\UserStatusMapper; +use OCP\DB\Exception; use Test\TestCase; class UserStatusMapperTest extends TestCase { @@ -147,7 +147,7 @@ class UserStatusMapperTest extends TestCase { $userStatus2->setStatusTimestamp(6000); $userStatus2->setIsUserDefined(false); - $this->expectException(UniqueConstraintViolationException::class); + $this->expectException(Exception::class); $this->mapper->insert($userStatus2); } |