Bug 19760: Fix Config.t test
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 9924fa4bd2)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
db7aa4cc37
commit
d17012973e
|
|
@ -52,10 +52,8 @@ subtest 'read_from_file() tests' => sub {
|
|||
|
||||
$parsing_result = 'error';
|
||||
|
||||
warning_is
|
||||
{$result = Koha::Config->read_from_file("SomeFile.xml")}
|
||||
'Error reading file SomeFile.xml',
|
||||
'File failing to read raises warning';
|
||||
$result = eval {Koha::Config->read_from_file("SomeFile.xml")};
|
||||
like( $@, qr{.*Error reading file.*}, 'File failing to read raises warning');
|
||||
is( $result, undef, 'Returns undef on error confition' );
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue