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

(-)a/t/db_dependent/Circulation.t (-2 / +5 lines)
Lines 2824-2830 $cache->clear_from_cache('single_holidays'); Link Here
2824
2824
2825
subtest 'AddRenewal and AddIssuingCharge tests' => sub {
2825
subtest 'AddRenewal and AddIssuingCharge tests' => sub {
2826
2826
2827
    plan tests => 12;
2827
    plan tests => 13;
2828
2828
2829
    $schema->storage->txn_begin;
2829
    $schema->storage->txn_begin;
2830
2830
Lines 2876-2881 subtest 'AddRenewal and AddIssuingCharge tests' => sub { Link Here
2876
    my $new_log_size = scalar( @{ GetLogs( $date, $date, undef, ["CIRCULATION"], ["RENEWAL"] ) } );
2876
    my $new_log_size = scalar( @{ GetLogs( $date, $date, undef, ["CIRCULATION"], ["RENEWAL"] ) } );
2877
    is( $new_log_size, $old_log_size, 'renew log not added because of the syspref RenewalLog' );
2877
    is( $new_log_size, $old_log_size, 'renew log not added because of the syspref RenewalLog' );
2878
2878
2879
    my $checkouts = $patron->checkouts;
2880
    # The following will fail if run on 00:00:00
2881
    unlike ( $checkouts->next->lastreneweddate, qr/00:00:00/, 'AddRenewal should set the renewal date with the time part');
2882
2879
    t::lib::Mocks::mock_preference( 'RenewalLog', 1 );
2883
    t::lib::Mocks::mock_preference( 'RenewalLog', 1 );
2880
    $date = output_pref( { dt => dt_from_string(), datenonly => 1, dateformat => 'iso' } );
2884
    $date = output_pref( { dt => dt_from_string(), datenonly => 1, dateformat => 'iso' } );
2881
    $old_log_size = scalar( @{ GetLogs( $date, $date, undef, ["CIRCULATION"], ["RENEWAL"] ) } );
2885
    $old_log_size = scalar( @{ GetLogs( $date, $date, undef, ["CIRCULATION"], ["RENEWAL"] ) } );
2882
- 

Return to bug 18957