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

(-)a/t/db_dependent/Circulation.t (-4 / +4 lines)
Lines 2464-2471 subtest 'AddIssue & illrequests.due_date' => sub { Link Here
2464
2464
2465
    set_userenv($library);
2465
    set_userenv($library);
2466
2466
2467
    my $custom_date_due = '9999-12-18 12:34:56';
2467
    my $custom_date_due = '4999-12-18 12:34:56';
2468
    my $expected_date_due = '9999-12-18 23:59:00';
2468
    my $expected_date_due = '4999-12-18 23:59:00';
2469
    my $illrequest = Koha::ILL::Request->new({
2469
    my $illrequest = Koha::ILL::Request->new({
2470
        borrowernumber => $patron->borrowernumber,
2470
        borrowernumber => $patron->borrowernumber,
2471
        biblio_id => $item->biblionumber,
2471
        biblio_id => $item->biblionumber,
Lines 2478-2485 subtest 'AddIssue & illrequests.due_date' => sub { Link Here
2478
2478
2479
    $patron = $builder->build_object( { class => 'Koha::Patrons' } );
2479
    $patron = $builder->build_object( { class => 'Koha::Patrons' } );
2480
    $item = $builder->build_sample_item();
2480
    $item = $builder->build_sample_item();
2481
    $custom_date_due = '9999-12-19';
2481
    $custom_date_due = '4999-12-19';
2482
    $expected_date_due = '9999-12-19 23:59:00';
2482
    $expected_date_due = '4999-12-19 23:59:00';
2483
    $illrequest = Koha::ILL::Request->new({
2483
    $illrequest = Koha::ILL::Request->new({
2484
        borrowernumber => $patron->borrowernumber,
2484
        borrowernumber => $patron->borrowernumber,
2485
        biblio_id => $item->biblionumber,
2485
        biblio_id => $item->biblionumber,
(-)a/t/db_dependent/Circulation/dateexpiry.t (-2 / +1 lines)
Lines 124-130 sub calc_date_due { Link Here
124
    is( ref $d eq "DateTime" && $d->mdy() =~ /^\d+/, 1, "CalcDateDue with expiry tomorrow" );
124
    is( ref $d eq "DateTime" && $d->mdy() =~ /^\d+/, 1, "CalcDateDue with expiry tomorrow" );
125
125
126
    # fourth test far future
126
    # fourth test far future
127
    $patron->dateexpiry('9876-12-31')->store;
127
    $patron->dateexpiry('4999-12-31')->store;
128
    my $t1 = time;
128
    my $t1 = time;
129
    $d = C4::Circulation::CalcDateDue( $today, $item->effective_itemtype, $branch->{branchcode}, $patron );
129
    $d = C4::Circulation::CalcDateDue( $today, $item->effective_itemtype, $branch->{branchcode}, $patron );
130
    my $t2 = time;
130
    my $t2 = time;
131
- 

Return to bug 36567