Bug 17124: Fix tests in DecreaseLoanHighHolds.t
One test of DecreaseLoanHighHolds.t does not pass, A hashref representing a patron has a 'borrower' key defined, instead of 'borrowernumber'. Test plan: prove t/db_dependent/DecreaseLoanHighHolds.t must return green Signed-off-by: Claire Gravely <claire_gravely@hotmail.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
23a4b31631
commit
1bc34e31e9
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ C4::Context->set_preference( 'decreaseLoanHighHoldsControl', 'static' );
|
|||
C4::Context->set_preference( 'decreaseLoanHighHoldsIgnoreStatuses', 'damaged,itemlost,notforloan,withdrawn' );
|
||||
|
||||
my $item_hr = { itemnumber => $item->id, biblionumber => $biblio->id, homebranch => $library->{branchcode}, holdingbranch => $library->{branchcode}, barcode => $item->barcode };
|
||||
my $patron_hr = { borrower => $patron->id, branchcode => $library->{branchcode} };
|
||||
my $patron_hr = { borrowernumber => $patron->id, branchcode => $library->{branchcode} };
|
||||
|
||||
my $data = C4::Circulation::checkHighHolds( $item_hr, $patron_hr );
|
||||
is( $data->{exceeded}, 1, "Static mode should exceed threshold" );
|
||||
|
|
Loading…
Reference in a new issue