Lines 42-48
my $builder = t::lib::TestBuilder->new;
Link Here
|
42 |
|
42 |
|
43 |
t::lib::Mocks::mock_config( 'enable_plugins', 1 ); |
43 |
t::lib::Mocks::mock_config( 'enable_plugins', 1 ); |
44 |
|
44 |
|
45 |
subtest 'post_renewal_action() hook tests' => sub { |
45 |
subtest 'after_circ_action() hook tests' => sub { |
46 |
|
46 |
|
47 |
plan tests => 1; |
47 |
plan tests => 1; |
48 |
|
48 |
|
Lines 72-79
subtest 'post_renewal_action() hook tests' => sub {
Link Here
|
72 |
AddIssue( $patron->unblessed, $item->barcode ); |
72 |
AddIssue( $patron->unblessed, $item->barcode ); |
73 |
|
73 |
|
74 |
warning_like { AddRenewal( $patron->borrowernumber, $item->id, $patron->branchcode ); } |
74 |
warning_like { AddRenewal( $patron->borrowernumber, $item->id, $patron->branchcode ); } |
75 |
qr/after_circ_action called with action: renewal, ref: DateTime/, |
75 |
qr/after_circ_action called with action: renewal, ref: Koha::Checkout/, |
76 |
'AddRenewal calls the post_renewal_action hook'; |
76 |
'AddRenewal calls the after_circ_action hook'; |
77 |
|
77 |
|
78 |
$schema->storage->txn_rollback; |
78 |
$schema->storage->txn_rollback; |
79 |
Koha::Plugins::Methods->delete; |
79 |
Koha::Plugins::Methods->delete; |