[Koha-bugs] [Bug 14337] AllowRenewalIfOtherItemsAvailable counts holdable not for loan items when checking renewability
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Aug 20 15:11:57 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14337
--- Comment #14 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Comment on attachment 41708
--> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41708
Bug 14337 - Add Unit Tests
Review of attachment 41708:
--> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=14337&attachment=41708)
-----------------------------------------------------------------
::: t/db_dependent/Circulation.t
@@ +649,5 @@
> + my $borrower2 = GetMember( borrowernumber => $borrowernumber2 );
> +
> + my $issue = AddIssue( $borrower1, $barcode1 );
> +
> + my ( $renewokay, $error ) = CanBookBeRenewed( $borrowernumber2, $itemnumber1 );
Shouldn't be borrowernumber1?
Chelsea didn't check out itemnumber1.
@@ +667,5 @@
> +
> + ( $renewokay, $error ) = CanBookBeRenewed( $borrowernumber2, $itemnumber1 );
> + is( $renewokay, 1, 'Bug 14337 - Verify the borrower can renew with a hold on the record if AllowRenewalIfOtherItemsAvailable is enabled' );
> +
> + diag("Setting item not checked out to be not for loan but holdable");
No need to overload the output, just a comment would be enough, don't you
think?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list