]> git.koha-community.org Git - koha.git/commit
Bug 25755: Add Unit tests for update to get_transfer
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 18 Sep 2020 13:56:23 +0000 (14:56 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 3 Mar 2021 14:36:12 +0000 (15:36 +0100)
commitf81ecbb19dec8a716c46d35972a5ab0ec3b25712
tree4ad42c900b1655b239543bc909a1c1ab8d466e52
parent17007f03451024cf0c9d629173d7189f8b17537d
Bug 25755: Add Unit tests for update to get_transfer

We updated Koha::Item->get_transfer here to account for the new
daterequested field availability. It is now possible to set requested
without setting datesent simultaneiously.. as such we need to update
get_transfer to ensure we always return the right transfer (either the
one 'in transit' or the oldest request first.

This patch update the unit tests to test for this.

Signed-off-by: Kathleen Milne <kathleen.milne@cne-siar.gov.uk>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Item.pm
t/db_dependent/Koha/Items.t