From 889fee73133d405be55e60c610746cdb7ba85865 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 19 Sep 2017 13:13:47 -0300 Subject: [PATCH] Bug 6758: Use 'is' instead of 'ok' in tests Signed-off-by: Jonathan Druart --- t/db_dependent/Koha/Patrons.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.11.4.GIT