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

(-)a/t/db_dependent/Koha/Patrons.t (-1 / +16 lines)
Lines 738-743 subtest 'get_routing_lists' => sub { Link Here
738
subtest 'get_age' => sub {
738
subtest 'get_age' => sub {
739
    plan tests => 31;
739
    plan tests => 31;
740
740
741
    # Following tests implicitly assume timezone UTC
742
    delete $C4::Context::context->{tz};
743
    local %ENV;
744
    $ENV{TZ} = 'Etc/UTC';
745
741
    my $patron = $builder->build( { source => 'Borrower' } );
746
    my $patron = $builder->build( { source => 'Borrower' } );
742
    $patron = Koha::Patrons->find( $patron->{borrowernumber} );
747
    $patron = Koha::Patrons->find( $patron->{borrowernumber} );
743
748
Lines 815-825 subtest 'get_age' => sub { Link Here
815
    }
820
    }
816
821
817
    $patron->delete;
822
    $patron->delete;
823
824
    # Remove timezone change
825
    delete $C4::Context::context->{tz};
818
};
826
};
819
827
820
subtest 'is_valid_age' => sub {
828
subtest 'is_valid_age' => sub {
821
    plan tests => 10;
829
    plan tests => 10;
822
830
831
    # Following tests implicitly assume timezone UTC
832
    delete $C4::Context::context->{tz};
833
    local %ENV;
834
    $ENV{TZ} = 'Etc/UTC';
835
823
    my $dt = dt_from_string('2020-02-28');
836
    my $dt = dt_from_string('2020-02-28');
824
837
825
    Time::Fake->offset( $dt->epoch );
838
    Time::Fake->offset( $dt->epoch );
Lines 897-902 subtest 'is_valid_age' => sub { Link Here
897
910
898
    $patron->delete;
911
    $patron->delete;
899
    $category->delete;
912
    $category->delete;
913
914
    # Remove timezone change
915
    delete $C4::Context::context->{tz};
900
};
916
};
901
917
902
subtest 'account' => sub {
918
subtest 'account' => sub {
903
- 

Return to bug 34489