Lines 3000-3006
subtest 'AddRenewal and AddIssuingCharge tests' => sub {
Link Here
|
3000 |
# Check the item out |
3000 |
# Check the item out |
3001 |
AddIssue( $patron->unblessed, $item->barcode ); |
3001 |
AddIssue( $patron->unblessed, $item->barcode ); |
3002 |
t::lib::Mocks::mock_preference( 'RenewalLog', 0 ); |
3002 |
t::lib::Mocks::mock_preference( 'RenewalLog', 0 ); |
3003 |
my $date = output_pref( { dt => dt_from_string(), datenonly => 1, dateformat => 'iso' } ); |
3003 |
my $date = output_pref( { dt => dt_from_string(), dateonly => 1, dateformat => 'iso' } ); |
3004 |
my %params_renewal = ( |
3004 |
my %params_renewal = ( |
3005 |
timestamp => { -like => $date . "%" }, |
3005 |
timestamp => { -like => $date . "%" }, |
3006 |
module => "CIRCULATION", |
3006 |
module => "CIRCULATION", |
Lines 3016-3022
subtest 'AddRenewal and AddIssuingCharge tests' => sub {
Link Here
|
3016 |
unlike ( $checkouts->next->lastreneweddate, qr/00:00:00/, 'AddRenewal should set the renewal date with the time part'); |
3016 |
unlike ( $checkouts->next->lastreneweddate, qr/00:00:00/, 'AddRenewal should set the renewal date with the time part'); |
3017 |
|
3017 |
|
3018 |
t::lib::Mocks::mock_preference( 'RenewalLog', 1 ); |
3018 |
t::lib::Mocks::mock_preference( 'RenewalLog', 1 ); |
3019 |
$date = output_pref( { dt => dt_from_string(), datenonly => 1, dateformat => 'iso' } ); |
3019 |
$date = output_pref( { dt => dt_from_string(), dateonly => 1, dateformat => 'iso' } ); |
3020 |
$old_log_size = Koha::ActionLogs->count( \%params_renewal ); |
3020 |
$old_log_size = Koha::ActionLogs->count( \%params_renewal ); |
3021 |
AddRenewal( $patron->id, $item->id, $library->id ); |
3021 |
AddRenewal( $patron->id, $item->id, $library->id ); |
3022 |
$new_log_size = Koha::ActionLogs->count( \%params_renewal ); |
3022 |
$new_log_size = Koha::ActionLogs->count( \%params_renewal ); |
3023 |
- |
|
|