Bug 11921: (followup) Don't die on non-existent koha-conf.xml
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 9 Sep 2016 14:26:03 +0000 (11:26 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 9 Sep 2016 13:56:13 +0000 (13:56 +0000)
commit8abf2e5a40789ea6ea6ceb068ab290a152d783f1
tree1c6620d7b30fa7ee8cc9277ff782f8e9fce51741
parent0f516c7efbad8b29f70dd950f4fe6b5f01e7abee
Bug 11921: (followup) Don't die on non-existent koha-conf.xml

This patch wraps the XMLin call on an eval block. It also adds unit
tests (mocked) for Koha::Config->read_from_file()

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Config.pm
t/Koha/Config.t [new file with mode: 0644]