Bug 31086: (QA follow-up) Add unit tests
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 12 Jul 2022 15:22:46 +0000 (16:22 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 22 Jul 2022 17:19:18 +0000 (14:19 -0300)
commitf0685f0f4053da428ab13d9f3991790fb71b7e55
tree28c5b4a75c19fb558580e4be04806b7106c78fdc
parentbdddc7ee0a3a0ed2ec1c5996ab5be587c1e395df
Bug 31086: (QA follow-up) Add unit tests

This patch adds the unit tests for the change to Koha::Hold::store.

We test for and catch the exception introduced for both the create and
update cases.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
t/db_dependent/Koha/Hold.t