]> 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)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 15 Nov 2018 12:47:36 +0000 (12:47 +0000)
commitecf68132b7e2eafff0d0dc8991b8ebc52534f75e
treed82319d23d77bb5ecac1b0d7424451b5a5d5ee44
parent2d1b80d216b2bdf4eefc05f773d85f9cf14823b3
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>
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]