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

(-)a/t/db_dependent/Circulation/issue.t (-4 / +10 lines)
Lines 462-472 AddReturn( 'barcode_3', $branchcode_1 ); Link Here
462
$item = Koha::Items->find( $itemnumber );
462
$item = Koha::Items->find( $itemnumber );
463
ok( $item->notforloan eq 0, q{UpdateNotForLoanStatusOnCheckin _ALL_ rules are applied if there are no specific item type rule matching the returned item} );
463
ok( $item->notforloan eq 0, q{UpdateNotForLoanStatusOnCheckin _ALL_ rules are applied if there are no specific item type rule matching the returned item} );
464
464
465
t::lib::Mocks::mock_preference( 'UpdateNotForLoanStatusOnCheckin', '1: ONLYMESSAGE' );
465
t::lib::Mocks::mock_preference(
466
    'UpdateNotForLoanStatusOnCheckin', q{_ALL_:
467
        1: ONLYMESSAGE
468
}
469
);
466
$item->notforloan(1)->store;
470
$item->notforloan(1)->store;
467
AddReturn( 'barcode_3', $branchcode_1 );
471
AddReturn( 'barcode_3', $branchcode_1 );
468
$item = Koha::Items->find( $itemnumber );
472
$item->discard_changes;
469
ok( $item->notforloan eq 1, q{UpdateNotForLoanStatusOnCheckin does not update notforloan value from 1 with setting "1: ONLYMESSAGE"} );
473
ok(
474
    $item->notforloan eq 1,
475
    q{UpdateNotForLoanStatusOnCheckin does not update notforloan value from 1 with setting "1: ONLYMESSAGE"}
476
);
470
477
471
my $itemnumber2 = Koha::Item->new(
478
my $itemnumber2 = Koha::Item->new(
472
    {
479
    {
473
- 

Return to bug 35692