Bug 18579: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 11 May 2017 16:04:18 +0000 (13:04 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 12 May 2017 12:43:18 +0000 (08:43 -0400)
commit3e1d76dbc0e98bb8a0d66c99a9c9b1afa936e62e
tree65a461fc1e533969783bd33c8db51ca15c1217d1
parent7a4f3c17a8fe518534658009d075dcdc1d537b62
Bug 18579: Regression tests

This patch makes sure the tests have the biblio.biblionumber mapping mocked
so we test the case where the mapping is to a control field instead of just
regular data fields (in the case of UNIMARC).

To test:
- Apply the patch
- Run:
  $ prove t/db_dependent/Koha/Filter/EmbedItemsAvailability.t
=> FAIL: Tests fail due to an attemp to access a subfield on a control field.

Sponsored-by: ByWater Solutions
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Koha/Filter/EmbedItemsAvailability.t