diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index 339f5b6d61..be02501f42 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -5638,7 +5638,14 @@ subtest "GetSoonestRenewDate tests" => sub { rule_value => '7', } ); - my $patron = $builder->build_object({ class => 'Koha::Patrons' }); + my $patron = $builder->build_object( + { + class => 'Koha::Patrons', + value => { + autorenew_checkouts => 1, + } + } + ); my $item = $builder->build_sample_item(); my $issue = AddIssue( $patron->unblessed, $item->barcode); my $datedue = dt_from_string( $issue->date_due() );