Bug 32408: Add unit tests to SIP checkout
authorMatthias Meusburger <matthias.meusburger@biblibre.com>
Thu, 8 Dec 2022 10:38:10 +0000 (10:38 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 7 Feb 2023 18:52:13 +0000 (15:52 -0300)
commit5f97fa18cc4dfc133f535815395b34f5cc7bfffa
tree9b04fe61e3fac7125c9fca01c2ac149c71b74db4
parent8939c58a862c819e8af6366c664ec89fbe3f7547
Bug 32408: Add unit tests to SIP checkout

This patch adds unit tests to show SIP's behavior on checkout according to the
AllFinesNeedOverride, AllowFineOverride and noissuescharge sysprefs, knowingly:

+----------------------+-------------------+---------+---------+
| AllFinesNeedOverride | AllowFineOverride |  Under  |  Over   |
+----------------------+-------------------+---------+---------+
|                    0 |                 0 | allowed | blocked |
|                    0 |                 1 | allowed | blocked |
|                    1 |                 0 | blocked | blocked |
|                    1 |                 1 | blocked | blocked |
+----------------------+-------------------+---------+---------+

(the columns Under and Over are referring to "under noissuescharge" and
"over noissuescharge")

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
t/db_dependent/SIP/Transaction.t