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

(-)a/t/db_dependent/Circulation.t (-2 / +21 lines)
Lines 1764-1770 subtest 'AddReturn + CumulativeRestrictionPeriods' => sub { Link Here
1764
};
1764
};
1765
1765
1766
subtest 'AddReturn + suspension_chargeperiod' => sub {
1766
subtest 'AddReturn + suspension_chargeperiod' => sub {
1767
    plan tests => 10;
1767
    plan tests => 12;
1768
1768
1769
    my $library = $builder->build( { source => 'Branch' } );
1769
    my $library = $builder->build( { source => 'Branch' } );
1770
    my $patron  = $builder->build( { source => 'Borrower', value => { categorycode => $patron_category->{categorycode} } } );
1770
    my $patron  = $builder->build( { source => 'Borrower', value => { categorycode => $patron_category->{categorycode} } } );
Lines 1895-1900 subtest 'AddReturn + suspension_chargeperiod' => sub { Link Here
1895
            expiration_date => $expected_expiration,
1895
            expiration_date => $expected_expiration,
1896
        }
1896
        }
1897
    );
1897
    );
1898
1899
    # Adding another holiday, day of expiration date
1900
    my $expected_expiration_dt = dt_from_string($expected_expiration);
1901
    $calendar->insert_single_holiday(
1902
        day             => $expected_expiration_dt->day,
1903
        month           => $expected_expiration_dt->month,
1904
        year            => $expected_expiration_dt->year,
1905
        title           => 'holidayTest_exp',
1906
        description     => 'holidayDesc on expiration date'
1907
    );
1908
    # Expiration date will be the day after
1909
    test_debarment_on_checkout(
1910
        {
1911
            item            => $item_1,
1912
            library         => $library,
1913
            patron          => $patron,
1914
            due_date        => $five_days_ago,
1915
            expiration_date => $expected_expiration_dt->clone->add( days => 1 ),
1916
        }
1917
    );
1898
};
1918
};
1899
1919
1900
subtest 'AddReturn | is_overdue' => sub {
1920
subtest 'AddReturn | is_overdue' => sub {
1901
- 

Return to bug 19204