Bugzilla – Attachment 67218 Details for
Bug 6758
Capture membership renewal date for reporting purposes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6758: Use 'is' instead of 'ok' in tests
Bug-6758-Use-is-instead-of-ok-in-tests.patch (text/plain), 1.37 KB, created by
Jonathan Druart
on 2017-09-19 16:14:31 UTC
(
hide
)
Description:
Bug 6758: Use 'is' instead of 'ok' in tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-09-19 16:14:31 UTC
Size:
1.37 KB
patch
obsolete
>From aac5aaf5ba512c1fa39ab20333b83be544930316 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 19 Sep 2017 13:13:47 -0300 >Subject: [PATCH] Bug 6758: Use 'is' instead of 'ok' in tests > >--- > 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.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6758
:
62696
|
62697
|
62698
|
62699
|
62929
|
65490
|
65491
|
65492
| 67218 |
67219