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

(-)a/t/db_dependent/SIP/Transaction.t (-5 / +4 lines)
Lines 352-362 subtest checkin_lost => sub { Link Here
352
    my $ils = C4::SIP::ILS->new( $instituation );
352
    my $ils = C4::SIP::ILS->new( $instituation );
353
353
354
    t::lib::Mocks::mock_preference('BlockReturnOfLostItems', '1');
354
    t::lib::Mocks::mock_preference('BlockReturnOfLostItems', '1');
355
    my $circ = $ils->checkin( $item->barcode, C4::SIP::Sip::timestamp );
355
    my $circ = $ils->checkin( $item->barcode, C4::SIP::Sip::timestamp, undef, $library->branchcode );
356
    is( $circ->{screen_msg}, 'Item lost, return not allowed', "Got correct screen message" );
356
    is( $circ->{screen_msg}, 'Item lost, return not allowed', "Got correct screen message" );
357
357
358
    t::lib::Mocks::mock_preference('BlockReturnOfLostItems', '0');
358
    t::lib::Mocks::mock_preference('BlockReturnOfLostItems', '0');
359
    $circ = $ils->checkin( $item->barcode, C4::SIP::Sip::timestamp );
359
    $circ = $ils->checkin( $item->barcode, C4::SIP::Sip::timestamp, undef, $library->branchcode );
360
    is( $circ->{screen_msg}, 'Item not checked out', "Got 'Item not checked out' screen message" );
360
    is( $circ->{screen_msg}, 'Item not checked out', "Got 'Item not checked out' screen message" );
361
};
361
};
362
362
Lines 390-400 subtest checkin_withdrawn => sub { Link Here
390
    my $ils = C4::SIP::ILS->new( $instituation );
390
    my $ils = C4::SIP::ILS->new( $instituation );
391
391
392
    t::lib::Mocks::mock_preference('BlockReturnOfWithdrawnItems', '1');
392
    t::lib::Mocks::mock_preference('BlockReturnOfWithdrawnItems', '1');
393
    my $circ = $ils->checkin( $item->barcode, C4::SIP::Sip::timestamp );
393
    my $circ = $ils->checkin( $item->barcode, C4::SIP::Sip::timestamp, undef, $library->branchcode );
394
    is( $circ->{screen_msg}, 'Item withdrawn, return not allowed', "Got correct screen message" );
394
    is( $circ->{screen_msg}, 'Item withdrawn, return not allowed', "Got correct screen message" );
395
395
396
    t::lib::Mocks::mock_preference('BlockReturnOfWithdrawnItems', '0');
396
    t::lib::Mocks::mock_preference('BlockReturnOfWithdrawnItems', '0');
397
    $circ = $ils->checkin( $item->barcode, C4::SIP::Sip::timestamp );
397
    $circ = $ils->checkin( $item->barcode, C4::SIP::Sip::timestamp, undef, $library->branchcode );
398
    is( $circ->{screen_msg}, 'Item not checked out', "Got 'Item not checked out' screen message" );
398
    is( $circ->{screen_msg}, 'Item not checked out', "Got 'Item not checked out' screen message" );
399
};
399
};
400
400
401
- 

Return to bug 25348