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

(-)a/t/db_dependent/Koha/Item.t (-2 / +2 lines)
Lines 2143-2149 subtest 'is_denied_renewal' => sub { Link Here
2143
    C4::Context->set_preference('ItemsDeniedRenewal', $idr_rules);
2143
    C4::Context->set_preference('ItemsDeniedRenewal', $idr_rules);
2144
    is( $deny_book->is_denied_renewal, 0, 'Renewal allowed when no rules' );
2144
    is( $deny_book->is_denied_renewal, 0, 'Renewal allowed when no rules' );
2145
2145
2146
    $idr_rules="withdrawn: [1]";
2146
    # The wrong column delete should be silently ignored and not trigger item delete
2147
    $idr_rules="delete: [yes]\nwithdrawn: [1]";
2147
    C4::Context->set_preference('ItemsDeniedRenewal', $idr_rules);
2148
    C4::Context->set_preference('ItemsDeniedRenewal', $idr_rules);
2148
    is( $deny_book->is_denied_renewal, 1, 'Renewal blocked when 1 rules (withdrawn)' );
2149
    is( $deny_book->is_denied_renewal, 1, 'Renewal blocked when 1 rules (withdrawn)' );
2149
    is( $allow_book->is_denied_renewal, 0, 'Renewal allowed when 1 rules not matched (withdrawn)' );
2150
    is( $allow_book->is_denied_renewal, 0, 'Renewal allowed when 1 rules not matched (withdrawn)' );
2150
- 

Return to bug 33844