]> git.koha-community.org Git - koha.git/commit
Bug 33292: Add unit tests
authorMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Thu, 26 Sep 2024 13:00:26 +0000 (13:00 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Thu, 24 Oct 2024 11:38:16 +0000 (13:38 +0200)
commit4b37f32c87c7c8d8b4e5a0fb0d99588f5aa55c9d
tree72f385debd897a77f8c85e6b67ad0c42a82d7582
parent432e32e36839b1b82bd45687a39c5307ffd21cf9
Bug 33292: Add unit tests

Test plan:
1) In KTD, set ClaimReturnedLostValue to any value
2) Checkout an item to a patron
3) Add a manual invoice to that patron's account against that item barcode
4) In the patron's checkouts table, click the Claim returned button
5) The checkbox will have the option to "Refund previous lost fee"
6) Tick this box and submit
7) Have a look at the patron's transactions. There will now be a new line refunding the lost fee from step 3
8) Run the unit tests
prove t/db_dependent/Circulation/ReturnClaims.t
prove t/db_dependent/api/v1/return_claims.t

Signed-off-by: Kristi Krueger <kkrueger@cuyahogalibrary.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
t/db_dependent/Circulation/ReturnClaims.t
t/db_dependent/api/v1/return_claims.t