Bug 18957: Add tests
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 54fd0718da)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
0e174855a0
commit
fe9a4b624f
|
|
@ -2773,7 +2773,7 @@ $cache->clear_from_cache('single_holidays');
|
|||
|
||||
subtest 'AddRenewal and AddIssuingCharge tests' => sub {
|
||||
|
||||
plan tests => 9;
|
||||
plan tests => 10;
|
||||
|
||||
$schema->storage->txn_begin;
|
||||
|
||||
|
|
@ -2825,6 +2825,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"] ) } );
|
||||
|
|
|
|||
Loading…
Reference in New Issue