Bug 19049: [QA Follow-up] Mock config, default format
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 11 Aug 2017 06:34:45 +0000 (08:34 +0200)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sun, 10 Sep 2017 09:00:29 +0000 (11:00 +0200)
commitfe0e8e740a044ca2002091aaacbe0843749fe56d
treeae411711d2f6cb696a7df69c48f663a3fa1d7006
parent396ff22074d681d055539fa8928476fe4228a7be
Bug 19049: [QA Follow-up] Mock config, default format

As requested by QA:
[1] Mock_config enable_plugins in the test.
[2] Fallback to MARC when format is empty. Remove die statement.
Added:
[3] Remove $marc. This variable got obsolete during development.
[4] Add test on $input_file and $plugin_class. Test $text before calling
    Handler or processing $text. No need to split undef if somehow Handler
    returned undef, etc. If the routine returns an empty arrayref,
    stage-marc-import will do fine.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit a423fcff42da05e9ebf9f2b4a2f192023346e93e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit f067450d8011fb0a27a28524bec359ffad4f2278)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
C4/ImportBatch.pm
t/db_dependent/ImportBatch.t
tools/stage-marc-import.pl