]> git.koha-community.org Git - koha.git/commit
Bug 36493: Make cashups test more robust
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 2 Apr 2024 15:39:02 +0000 (12:39 -0300)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 28 May 2024 17:51:02 +0000 (17:51 +0000)
commitde189183397479a0ef4866156f72117cc9f8573e
tree6789d038756fb573a873edfdb3afc70085ecbf7a
parent89658988736b7960d561947df14ccda2e934c65e
Bug 36493: Make cashups test more robust

This patch makes the test independent from existing cash registers in
the system.

To test:
1. Enable UseCashRegisters on a fresh KTD
2. Add a cash register
3. Run:
   $ ktd --shell
  k$ prove t/db_dependent/api/v1/cashups.t
=> FAIL: Tests fail!
4. Apply this patch
5. Repeat 3
=> SUCCESS: Tests pass!
6. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 4436a7d41a74bf002fdd80ec97f0be38d40eee22)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 19b543a51b59c7a13e5a901c2c31413eee2f2692)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
t/db_dependent/api/v1/cashups.t