]> git.koha-community.org Git - koha.git/commit
Bug 28744: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Jul 2021 03:35:49 +0000 (00:35 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 8 Sep 2021 20:36:27 +0000 (10:36 -1000)
commite5c2352aa8b3130d22a462b149dde0639187c247
tree9f036ab1e5287817f4877ce1005f50db28ad968a
parent35e8dcec2039c370193ee6ff64b12aedf4759c67
Bug 28744: Regression tests

This patch adds tests for the following cases:
- to_api_mapping not defined
- to_api_mapping returning an empty hashref

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Object.t
=> FAIL: Tests fail :-(

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>
JD amended patch: remove uneeded commented lines

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 257eb1b9a4668f7471429374259fc308ffd5ed57)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Koha/Object.t