Bugzilla – Attachment 85598 Details for
Bug 18957
Item renewed online does not show the time of renewal
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18957: Add tests
Bug-18957-Add-tests.patch (text/plain), 1.52 KB, created by
Josef Moravec
on 2019-02-25 09:02:40 UTC
(
hide
)
Description:
Bug 18957: Add tests
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2019-02-25 09:02:40 UTC
Size:
1.52 KB
patch
obsolete
>From 2a7893f463da208cad245b0637e2f9bd179f1923 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 22 Feb 2019 11:01:38 -0300 >Subject: [PATCH] Bug 18957: Add tests > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > t/db_dependent/Circulation.t | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t >index 707582d44a..98e94e7c11 100755 >--- a/t/db_dependent/Circulation.t >+++ b/t/db_dependent/Circulation.t >@@ -2824,7 +2824,7 @@ $cache->clear_from_cache('single_holidays'); > > subtest 'AddRenewal and AddIssuingCharge tests' => sub { > >- plan tests => 12; >+ plan tests => 13; > > $schema->storage->txn_begin; > >@@ -2876,6 +2876,10 @@ subtest 'AddRenewal and AddIssuingCharge tests' => sub { > my $new_log_size = scalar( @{ GetLogs( $date, $date, undef, ["CIRCULATION"], ["RENEWAL"] ) } ); > is( $new_log_size, $old_log_size, 'renew log not added because of the syspref RenewalLog' ); > >+ my $checkouts = $patron->checkouts; >+ # The following will fail if run on 00:00:00 >+ unlike ( $checkouts->next->lastreneweddate, qr/00:00:00/, 'AddRenewal should set the renewal date with the time part'); >+ > t::lib::Mocks::mock_preference( 'RenewalLog', 1 ); > $date = output_pref( { dt => dt_from_string(), datenonly => 1, dateformat => 'iso' } ); > $old_log_size = scalar( @{ GetLogs( $date, $date, undef, ["CIRCULATION"], ["RENEWAL"] ) } ); >-- >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 18957
:
85527
|
85528
|
85565
|
85566
| 85598 |
85599