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

(-)a/t/db_dependent/api/v1/patrons.t (-2 / +8 lines)
Lines 659-665 subtest 'update() tests' => sub { Link Here
659
        my $updated_on_got = delete $got->{updated_on};
659
        my $updated_on_got = delete $got->{updated_on};
660
        my $updated_on_expected = delete $newpatron->{updated_on};
660
        my $updated_on_expected = delete $newpatron->{updated_on};
661
        is_deeply($got, $newpatron, 'Returned patron from update matches expected');
661
        is_deeply($got, $newpatron, 'Returned patron from update matches expected');
662
        is( t::lib::Dates::compare( $updated_on_got, $updated_on_expected ), 0, 'updated_on values matched' );
662
        is(
663
            t::lib::Dates::compare(
664
                dt_from_string( $updated_on_got,      'rfc3339' ),
665
                dt_from_string( $updated_on_expected, 'rfc3339' )
666
            ),
667
            0,
668
            'updated_on values matched'
669
        );
663
670
664
        is(Koha::Patrons->find( $patron_2->id )->cardnumber,
671
        is(Koha::Patrons->find( $patron_2->id )->cardnumber,
665
           $newpatron->{ cardnumber }, 'Patron is really updated!');
672
           $newpatron->{ cardnumber }, 'Patron is really updated!');
666
- 

Return to bug 29403