Lines 18-24
Link Here
|
18 |
use Modern::Perl; |
18 |
use Modern::Perl; |
19 |
use utf8; |
19 |
use utf8; |
20 |
|
20 |
|
21 |
use Test::More tests => 48; |
21 |
use Test::More tests => 49; |
22 |
use Test::Exception; |
22 |
use Test::Exception; |
23 |
use Test::MockModule; |
23 |
use Test::MockModule; |
24 |
use Test::Deep qw( cmp_deeply ); |
24 |
use Test::Deep qw( cmp_deeply ); |
Lines 2345-2351
subtest 'CanBookBeIssued + AutoReturnCheckedOutItems' => sub {
Link Here
|
2345 |
|
2345 |
|
2346 |
|
2346 |
|
2347 |
subtest 'AddReturn | is_overdue' => sub { |
2347 |
subtest 'AddReturn | is_overdue' => sub { |
2348 |
plan tests => 8; |
2348 |
plan tests => 9; |
2349 |
|
2349 |
|
2350 |
t::lib::Mocks::mock_preference('MarkLostItemsAsReturned', 'batchmod|moredetail|cronjob|additem|pendingreserves|onpayment'); |
2350 |
t::lib::Mocks::mock_preference('MarkLostItemsAsReturned', 'batchmod|moredetail|cronjob|additem|pendingreserves|onpayment'); |
2351 |
t::lib::Mocks::mock_preference('CalculateFinesOnReturn', 1); |
2351 |
t::lib::Mocks::mock_preference('CalculateFinesOnReturn', 1); |
Lines 2658-2663
subtest 'AddReturn | is_overdue' => sub {
Link Here
|
2658 |
Koha::Account::Lines->search( |
2658 |
Koha::Account::Lines->search( |
2659 |
{ borrowernumber => $patron->borrowernumber } )->delete; |
2659 |
{ borrowernumber => $patron->borrowernumber } )->delete; |
2660 |
}; |
2660 |
}; |
|
|
2661 |
|
2662 |
subtest 'enh 23091 | Lost item return policies' => sub { |
2663 |
plan tests => 1; |
2664 |
|
2665 |
ok(1); |
2666 |
|
2667 |
# Do nothing |
2668 |
# |
2669 |
# Refund fee |
2670 |
## Without fee |
2671 |
## With fee |
2672 |
# |
2673 |
# Refund fee and restore fine |
2674 |
## Without fee |
2675 |
### Without fine |
2676 |
### With fine (forgiven) |
2677 |
### With fine (unforgiven) |
2678 |
## With fee |
2679 |
### Without fine |
2680 |
### With fine (forgiven) |
2681 |
### With fine (unforgiven) |
2682 |
# |
2683 |
# Refund fee and charge new fine |
2684 |
## Without fee |
2685 |
### Without fine |
2686 |
### With fine (forgiven) |
2687 |
### With fine (unforgiven) |
2688 |
## With fee |
2689 |
### Without fine |
2690 |
### With fine (forgiven) |
2691 |
### With fine (unforgiven) |
2692 |
### Backdated return |
2693 |
}; |
2661 |
}; |
2694 |
}; |
2662 |
|
2695 |
|
2663 |
subtest '_RestoreOverdueForLostAndFound' => sub { |
2696 |
subtest '_RestoreOverdueForLostAndFound' => sub { |
2664 |
- |
|
|