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

(-)a/t/db_dependent/Circulation.t (-1 / +2 lines)
Lines 1169-1174 subtest "CanBookBeRenewed tests" => sub { Link Here
1169
            }
1169
            }
1170
        }
1170
        }
1171
    );
1171
    );
1172
    t::lib::Mocks::mock_preference('UnseenRenewals', 1);
1172
    $dbh->do('UPDATE issues SET unseen_renewals = 2 where borrowernumber = ? AND itemnumber = ?', undef, ($renewing_borrowernumber, $item_1->itemnumber));
1173
    $dbh->do('UPDATE issues SET unseen_renewals = 2 where borrowernumber = ? AND itemnumber = ?', undef, ($renewing_borrowernumber, $item_1->itemnumber));
1173
    ( $renewokay, $error ) = CanBookBeRenewed($renewing_borrowernumber, $item_1->itemnumber);
1174
    ( $renewokay, $error ) = CanBookBeRenewed($renewing_borrowernumber, $item_1->itemnumber);
1174
    is( $renewokay, 0, 'Cannot renew, 0 unseen renewals allowed');
1175
    is( $renewokay, 0, 'Cannot renew, 0 unseen renewals allowed');
Lines 1184-1189 subtest "CanBookBeRenewed tests" => sub { Link Here
1184
            }
1185
            }
1185
        }
1186
        }
1186
    );
1187
    );
1188
    t::lib::Mocks::mock_preference('UnseenRenewals', 0);
1187
1189
1188
    # Test WhenLostForgiveFine and WhenLostChargeReplacementFee
1190
    # Test WhenLostForgiveFine and WhenLostChargeReplacementFee
1189
    t::lib::Mocks::mock_preference('WhenLostForgiveFine','1');
1191
    t::lib::Mocks::mock_preference('WhenLostForgiveFine','1');
1190
- 

Return to bug 24083