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

(-)a/t/db_dependent/Biblio.t (-3 / +7 lines)
Lines 55-62 subtest 'AddBiblio' => sub { Link Here
55
    $record->append_fields($lccn_field);
55
    $record->append_fields($lccn_field);
56
56
57
    my $nb_biblios = Koha::Biblios->count;
57
    my $nb_biblios = Koha::Biblios->count;
58
    my ( $biblionumber, $biblioitemnumber ) =
58
    my ( $biblionumber, $biblioitemnumber );
59
      C4::Biblio::AddBiblio( $record, '' );
59
    {
60
        local *STDERR;
61
        open STDERR, '>', '/dev/null';
62
        ( $biblionumber, $biblioitemnumber ) = C4::Biblio::AddBiblio( $record, '' );
63
        close STDERR;
64
    }
60
    is( $biblionumber, undef,
65
    is( $biblionumber, undef,
61
        'AddBiblio returns undef for biblionumber if something went wrong' );
66
        'AddBiblio returns undef for biblionumber if something went wrong' );
62
    is( $biblioitemnumber, undef,
67
    is( $biblioitemnumber, undef,
63
- 

Return to bug 26518