View | Details | Raw Unified | Return to bug 31095
Collapse All | Expand All

(-)a/t/db_dependent/Circulation.t (-6 / +6 lines)
Lines 2856-2864 subtest 'AddReturn + suspension_chargeperiod' => sub { Link Here
2856
            categorycode => undef,
2856
            categorycode => undef,
2857
            itemtype     => undef,
2857
            itemtype     => undef,
2858
            branchcode   => undef,
2858
            branchcode   => undef,
2859
            rules        => {
2859
            rules => {
2860
                finedays => 0,
2860
                finedays   => 0,
2861
            }
2861
                lengthunit => 'days',
2862
              }
2862
        }
2863
        }
2863
    );
2864
    );
2864
2865
Lines 2870-2876 subtest 'AddReturn + suspension_chargeperiod' => sub { Link Here
2870
        }
2871
        }
2871
    );
2872
    );
2872
2873
2873
    AddIssue( $patron, $item_1->barcode, $now->clone->subtract( days => 1 ) );
2874
    AddIssue( $patron->unblessed, $item_1->barcode, $now->clone->subtract( days => 1 ) );
2874
    my ( undef, $message ) = AddReturn( $item_1->barcode, $library->{branchcode}, undef, $now );
2875
    my ( undef, $message ) = AddReturn( $item_1->barcode, $library->{branchcode}, undef, $now );
2875
    is( $message->{WasReturned} && exists $message->{ForeverDebarred}, 1, 'Forever debarred message for Addreturn when overdue');
2876
    is( $message->{WasReturned} && exists $message->{ForeverDebarred}, 1, 'Forever debarred message for Addreturn when overdue');
2876
2877
Lines 2888-2894 subtest 'AddReturn + suspension_chargeperiod' => sub { Link Here
2888
        }
2889
        }
2889
    );
2890
    );
2890
2891
2891
    AddIssue( $patron, $item_1->barcode, $now->clone->subtract( days => 1 ) );
2892
    AddIssue( $patron->unblessed, $item_1->barcode, $now->clone->subtract( days => 1 ) );
2892
    (undef, $message) = AddReturn( $item_1->barcode, $library->{branchcode}, undef, $now );
2893
    (undef, $message) = AddReturn( $item_1->barcode, $library->{branchcode}, undef, $now );
2893
    is( $message->{WasReturned} && exists $message->{PrevDebarred}, 1, 'Previously debarred message for Addreturn when overdue');
2894
    is( $message->{WasReturned} && exists $message->{PrevDebarred}, 1, 'Previously debarred message for Addreturn when overdue');
2894
};
2895
};
2895
- 

Return to bug 31095