Bug 19014: (QA follow-up) Update test for AddReserve change
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
c2d3a60566
commit
c8fbb49000
1 changed files with 13 additions and 3 deletions
|
@ -628,9 +628,19 @@ subtest "CanBookBeRenewed tests" => sub {
|
||||||
is( $error, 'auto_too_soon',
|
is( $error, 'auto_too_soon',
|
||||||
'Bug 14101: Cannot renew, renewal is automatic and premature, "No renewal before" = undef (returned code is auto_too_soon)' );
|
'Bug 14101: Cannot renew, renewal is automatic and premature, "No renewal before" = undef (returned code is auto_too_soon)' );
|
||||||
AddReserve(
|
AddReserve(
|
||||||
$branch, $reserving_borrowernumber, $biblio->biblionumber,
|
{
|
||||||
$bibitems, $priority, $resdate, $expdate, $notes,
|
branchcode => $branch,
|
||||||
'a title', $item_4->itemnumber, $found
|
borrowernumber => $reserving_borrowernumber,
|
||||||
|
biblionumber => $biblio->biblionumber,
|
||||||
|
itemnumber => $bibitems,
|
||||||
|
priority => $priority,
|
||||||
|
reservation_date => $resdate,
|
||||||
|
expiration_date => $expdate,
|
||||||
|
notes => $notes,
|
||||||
|
title => 'a title',
|
||||||
|
itemnumber => $item_4->itemnumber,
|
||||||
|
found => $found
|
||||||
|
}
|
||||||
);
|
);
|
||||||
( $renewokay, $error ) = CanBookBeRenewed( $renewing_borrowernumber, $item_4->itemnumber );
|
( $renewokay, $error ) = CanBookBeRenewed( $renewing_borrowernumber, $item_4->itemnumber );
|
||||||
is( $renewokay, 0, 'Still should not be able to renew' );
|
is( $renewokay, 0, 'Still should not be able to renew' );
|
||||||
|
|
Loading…
Reference in a new issue