]> git.koha-community.org Git - koha.git/commit
Bug 34846: Fix SIP/ILS.t if DB has been upgraded
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 20 Sep 2023 14:13:40 +0000 (16:13 +0200)
committerJacob O'Mara <jacobomara901@gmail.com>
Tue, 17 Oct 2023 10:06:18 +0000 (11:06 +0100)
commitbd8272bebbfadd1ac523c0ad4a62d74b63af976f
tree9e889fd9d4e4576197592d33953fa0614f858c52
parentda3aef00f89d73005ec9fbcabc7a4b0c0ee94627
Bug 34846: Fix SIP/ILS.t if DB has been upgraded

t/db_dependent/SIP/ILS.t .. 12/15
    #   Failed test 'Renewal succeeded'
    #   at t/db_dependent/SIP/ILS.t line 346.
    #          got: '0'
    #     expected: '1'
    # Looks like you failed 1 test of 2.
t/db_dependent/SIP/ILS.t .. 15/15
 #   Failed test 'renew'
 #   at t/db_dependent/SIP/ILS.t line 348.
 # Looks like you failed 1 test of 15.

Because renewalsallowed is 0 for upgraded DB, when it's 5 for new
install.

We need to set the value.

Test plan:
perl /kohadevbox/misc4dev/run_tests.pl --run-db-upgrade-only

prove t/db_dependent/SIP/ILS.t

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 5f55775f402d4f4b56ab82426588b202d6f327ce)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit bb19ca161832d3c630523f03730eb2439063399f)
Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com>
t/db_dependent/SIP/ILS.t