]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 30 Aug 2021 15:02:07 +0000 (17:02 +0200)
commitbcc586ef93eea0258cf1032a8deca3c7ade6af11
tree3500a50cb2a991e42806aa8fb34b7007f7468f92
parent9a69c025451859776b9d4fd747ccb7705c806597
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>
t/db_dependent/Koha/Object.t