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 |
t::lib::Dates::compare( $updated_on_got, $updated_on_expected, 'updated_on values matched' ); |
662 |
t::lib::Dates::compare( |
|
|
663 |
dt_from_string( $updated_on_got, 'rfc3339' ), |
664 |
dt_from_string( $updated_on_expected, 'rfc3339' ), |
665 |
'updated_on values matched' |
666 |
); |
663 |
|
667 |
|
664 |
is(Koha::Patrons->find( $patron_2->id )->cardnumber, |
668 |
is(Koha::Patrons->find( $patron_2->id )->cardnumber, |
665 |
$newpatron->{ cardnumber }, 'Patron is really updated!'); |
669 |
$newpatron->{ cardnumber }, 'Patron is really updated!'); |
666 |
- |
|
|