]> git.koha-community.org Git - koha.git/commit
Bug 27797: (QA follow-up) Make tests more robust
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 8 Mar 2021 14:43:04 +0000 (11:43 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 4 May 2021 12:22:04 +0000 (14:22 +0200)
commit35f7e0ca1c24f4a4d74187f86020a85301a5308e
tree24c16580f1ecabede06552d05a9a5be801d7c134
parente5c8f741f96d3429bac34b1a8443efbdc91276a4
Bug 27797: (QA follow-up) Make tests more robust

This patch makes the tests mock things so the complex holds scenarios
where existing data could interfere, don't get in the middle with what
we need to test.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/holds.t
=> SUCCESS: Nothing broke

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/api/v1/holds.t