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

(-)a/t/db_dependent/DecreaseLoanHighHolds.t (-3 / +2 lines)
Lines 124-130 $unholdable->damaged(-1); Link Here
124
$unholdable->store();
124
$unholdable->store();
125
125
126
$data = C4::Circulation::checkHighHolds( $item_hr, $patron_hr );
126
$data = C4::Circulation::checkHighHolds( $item_hr, $patron_hr );
127
is( $data->{exceeded}, 1, "Should exceed threshold with one damanged item" );
127
is( $data->{exceeded}, 1, "Should exceed threshold with one damaged item" );
128
128
129
$unholdable->damaged(0);
129
$unholdable->damaged(0);
130
$unholdable->itemlost(-1);
130
$unholdable->itemlost(-1);
Lines 138-144 $unholdable->notforloan(-1); Link Here
138
$unholdable->store();
138
$unholdable->store();
139
139
140
$data = C4::Circulation::checkHighHolds( $item_hr, $patron_hr );
140
$data = C4::Circulation::checkHighHolds( $item_hr, $patron_hr );
141
is( $data->{exceeded}, 1, "Should exceed threshold wiht one notforloan item" );
141
is( $data->{exceeded}, 1, "Should exceed threshold with one notforloan item" );
142
142
143
$unholdable->notforloan(0);
143
$unholdable->notforloan(0);
144
$unholdable->withdrawn(-1);
144
$unholdable->withdrawn(-1);
145
- 

Return to bug 14694