From 8c195db8cc29d0bc46ce7ecb0417ef7fa2cc7b09 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 5 Jan 2018 15:39:53 +0000 Subject: [PATCH] Bug 15494 - Followup: Make sure items in tests are not overdue prove -v t/db_dependent/Circulation.t --- t/db_dependent/Circulation.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index a66e5ee..f474e36 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -2081,7 +2081,7 @@ subtest 'ItemsDeniedRenewal preference' => sub { }); my $idr_borrower = $builder->build_object({ class => 'Koha::Patrons'}); - + my $future = dt_from_string->add( days => 1 ); my $deny_issue = $builder->build_object({ class => 'Koha::Checkouts', value => { returndate => undef, renewals => 0, @@ -2089,6 +2089,7 @@ subtest 'ItemsDeniedRenewal preference' => sub { borrowernumber => $idr_borrower->borrowernumber, itemnumber => $deny_book->itemnumber, onsite_checkout => 0, + date_due => $future, } }); my $allow_issue = $builder->build_object({ class => 'Koha::Checkouts', value => { @@ -2098,6 +2099,7 @@ subtest 'ItemsDeniedRenewal preference' => sub { borrowernumber => $idr_borrower->borrowernumber, itemnumber => $allow_book->itemnumber, onsite_checkout => 0, + date_due => $future, } }); -- 2.1.4