View | Details | Raw Unified | Return to bug 19760
Collapse All | Expand All

(-)a/t/Koha/Config.t (-5 / +2 lines)
Lines 52-61 subtest 'read_from_file() tests' => sub { Link Here
52
52
53
    $parsing_result = 'error';
53
    $parsing_result = 'error';
54
54
55
    warning_is
55
    $result = eval {Koha::Config->read_from_file("SomeFile.xml")};
56
        {$result = Koha::Config->read_from_file("SomeFile.xml")}
56
    like( $@, qr{.*Error reading file.*}, 'File failing to read raises warning');
57
        'Error reading file SomeFile.xml',
58
        'File failing to read raises warning';
59
    is( $result, undef, 'Returns undef on error confition' );
57
    is( $result, undef, 'Returns undef on error confition' );
60
};
58
};
61
59
62
- 

Return to bug 19760