diff --git a/t/db_dependent/Koha/Charges/Fees.t b/t/db_dependent/Koha/Charges/Fees.t index 431e292a54..e015927074 100644 --- a/t/db_dependent/Koha/Charges/Fees.t +++ b/t/db_dependent/Koha/Charges/Fees.t @@ -320,6 +320,16 @@ subtest 'accumulate_rentalcharge tests' => sub { ); # Daily tests + Koha::CirculationRules->set_rules({ + categorycode => $patron->categorycode, + itemtype => $itemtype->id, + branchcode => $library->id, + rules => { + lengthunit => 'days', + } + } + ); + $itemtype->rentalcharge_daily(1.00); $itemtype->store(); is( $itemtype->rentalcharge_daily,