From: Jonathan Druart Date: Tue, 19 Sep 2017 16:13:47 +0000 (-0300) Subject: Bug 6758: Use 'is' instead of 'ok' in tests X-Git-Tag: v17.11.00~470 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=889fee73133d405be55e60c610746cdb7ba85865;p=koha_ffzg Bug 6758: Use 'is' instead of 'ok' in tests Signed-off-by: Jonathan Druart --- diff --git a/t/db_dependent/Koha/Patrons.t b/t/db_dependent/Koha/Patrons.t index d1c81fcc35..a0a19fdb21 100644 --- a/t/db_dependent/Koha/Patrons.t +++ b/t/db_dependent/Koha/Patrons.t @@ -307,7 +307,7 @@ subtest 'renew_account' => sub { $expiry_date = $retrieved_patron->renew_account; is( $expiry_date, $a_year_later, "today + 12 months must be $a_year_later" ); $retrieved_patron = Koha::Patrons->find( $patron->{borrowernumber} ); - ok( $retrieved_patron->date_renewed, "Date renewed is set when calling renew_account" ); + is( $retrieved_patron->date_renewed, output_pref({ dt => $dt, dateformat => 'iso', dateonly => 1 }), "Date renewed is set when calling renew_account" ); $retrieved_expiry_date = $retrieved_patron->dateexpiry; is( dt_from_string($retrieved_expiry_date), $a_year_later, "today + 12 months must be $a_year_later" ); $number_of_logs = $schema->resultset('ActionLog')->search( { module => 'MEMBERS', action => 'RENEW', object => $retrieved_patron->borrowernumber } )->count;