diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2024-05-29 11:01:19 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2024-05-29 11:10:43 +0200 |
commit | 3fb0aa40cd0c06d208653d17d62c0ce2b358d6cc (patch) | |
tree | 938703473fcfaa49aeebdf32ae791c072d41fc80 /tests | |
parent | b7b2966ce211a47edf710c3b2d0d3738e517fc81 (diff) | |
download | nextcloud-server-3fb0aa40cd0c06d208653d17d62c0ce2b358d6cc.tar.gz nextcloud-server-3fb0aa40cd0c06d208653d17d62c0ce2b358d6cc.zip |
feat(db): add mapping for lock wait timeout
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/DB/Exception/DbalExceptionTest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/DB/Exception/DbalExceptionTest.php b/tests/lib/DB/Exception/DbalExceptionTest.php index 97f0efa4b65..470beff9080 100644 --- a/tests/lib/DB/Exception/DbalExceptionTest.php +++ b/tests/lib/DB/Exception/DbalExceptionTest.php @@ -17,6 +17,7 @@ use Doctrine\DBAL\Exception\DriverException; use Doctrine\DBAL\Exception\ForeignKeyConstraintViolationException; use Doctrine\DBAL\Exception\InvalidArgumentException; use Doctrine\DBAL\Exception\InvalidFieldNameException; +use Doctrine\DBAL\Exception\LockWaitTimeoutException; use Doctrine\DBAL\Exception\NonUniqueFieldNameException; use Doctrine\DBAL\Exception\NotNullConstraintViolationException; use Doctrine\DBAL\Exception\ServerException; @@ -45,6 +46,7 @@ class DbalExceptionTest extends \Test\TestCase { public function dataDriverException(): array { return [ + [LockWaitTimeoutException::class, DbalException::REASON_LOCK_WAIT_TIMEOUT], [ForeignKeyConstraintViolationException::class, DbalException::REASON_FOREIGN_KEY_VIOLATION], [NotNullConstraintViolationException::class, DbalException::REASON_NOT_NULL_CONSTRAINT_VIOLATION], [UniqueConstraintViolationException::class, DbalException::REASON_UNIQUE_CONSTRAINT_VIOLATION], |