]> git.koha-community.org Git - koha.git/commit
Bug 21749: (QA follow-up) Add more tests for ImportFramework
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 12 Nov 2018 18:03:34 +0000 (15:03 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 23 Nov 2018 16:10:58 +0000 (16:10 +0000)
commit45eb022786eb4742dd3c982bd39ef35337b84ab7
tree03f86adb3a950a167d279b9231fa513df6b0c861
parent64405cf90671d0126200732a64f29fad2cccffb4
Bug 21749: (QA follow-up) Add more tests for ImportFramework

This patch adds tests for:
- Output of ImportFramework on fields removal and error conditions (file
  not found)
- Different file format behaviour (csv, xml and ods are tested).

To test:
- Run
  $ kshell
 k$ prove t/db_dependent/ImportExportFramework.t
=> SUCCESS: All green :-D
- Sign off :-D

Note: the biblio_framework* files are based on the original one on the
patchset, and exported in 17.11 with different formats.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit ecf68132b7e2eafff0d0dc8991b8ebc52534f75e)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/ImportExportFramework.t
t/db_dependent/data/frameworks/biblio_framework.ods [new file with mode: 0644]
t/db_dependent/data/frameworks/biblio_framework.xml [new file with mode: 0644]
t/db_dependent/data/frameworks/biblio_framework_smaller.csv [new file with mode: 0644]
t/db_dependent/data/frameworks/biblio_framework_smaller.ods [new file with mode: 0644]
t/db_dependent/data/frameworks/biblio_framework_smaller.xml [new file with mode: 0644]