]> git.koha-community.org Git - koha.git/commit
Bug 17249: Remove GetKohaAuthorisedValuesFromField - add tests
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 10 Aug 2016 10:28:40 +0000 (11:28 +0100)
committerMason James <mtj@kohaaloha.com>
Wed, 20 Sep 2017 02:00:05 +0000 (14:00 +1200)
commita53c3efd4c1773a609f2929a61b7324504cc18eb
treec4a0e46b3fd0dd91102deae5640f240ad3bfc23f
parent99e7f928b1bdd7ca997c6ae403a691f90866eeb4
Bug 17249: Remove GetKohaAuthorisedValuesFromField - add tests

This patch adds a few tests to C4::Record::marcrecord2csv
The subroutine was not covered enough to validate that this patch set
won't add regressions.

Note that the patch set will fix an issue: If 2 subfields of a field are
linked to AVs and you want to display them in a CSV, they won't be
replaced with their descriptions.

Test plan:
Apply the patch, and make a copy of t/db_dependent/Record/marcrecord2csv.t
Checkout master and prove marcrecord2csv.t
Tests should fail
Checkout the branch with the whole patch set applied
The tests should pass

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
t/db_dependent/Record/marcrecord2csv.t