Lines 553-559
subtest 'update() tests' => sub {
Link Here
|
553 |
my $updated_on_got = delete $got->{updated_on}; |
553 |
my $updated_on_got = delete $got->{updated_on}; |
554 |
my $updated_on_expected = delete $newpatron->{updated_on}; |
554 |
my $updated_on_expected = delete $newpatron->{updated_on}; |
555 |
is_deeply($got, $newpatron, 'Returned patron from update matches expected'); |
555 |
is_deeply($got, $newpatron, 'Returned patron from update matches expected'); |
556 |
t::lib::Dates::compare( $updated_on_got, $updated_on_expected, 'updated_on values matched' ); |
556 |
t::lib::Dates::compare( |
|
|
557 |
dt_from_string( $updated_on_got, 'rfc3339' ), |
558 |
dt_from_string( $updated_on_expected, 'rfc3339' ), |
559 |
'updated_on values matched' |
560 |
); |
557 |
|
561 |
|
558 |
is(Koha::Patrons->find( $patron_2->id )->cardnumber, |
562 |
is(Koha::Patrons->find( $patron_2->id )->cardnumber, |
559 |
$newpatron->{ cardnumber }, 'Patron is really updated!'); |
563 |
$newpatron->{ cardnumber }, 'Patron is really updated!'); |
560 |
- |
|
|