@@ -, +, @@ --- t/db_dependent/Koha/Plugins/Circulation_hooks.t | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) --- a/t/db_dependent/Koha/Plugins/Circulation_hooks.t +++ a/t/db_dependent/Koha/Plugins/Circulation_hooks.t @@ -44,7 +44,7 @@ t::lib::Mocks::mock_config( 'enable_plugins', 1 ); subtest '_after_circ_action() hook tests' => sub { - plan tests => 2; + plan tests => 3; $schema->storage->txn_begin; @@ -91,6 +91,17 @@ subtest '_after_circ_action() hook tests' => sub { 'AddRenewal calls the after_circ_action hook'; }; + subtest 'AddReturn' => sub { + plan tests => 1; + + warning_like { + AddReturn( $patron->borrowernumber, $item->id, + $patron->branchcode ); + } + qr/after_circ_action called with action: checkin, ref: DateTime/, + 'AddReturn calls the after_circ_action hook'; + }; + $schema->storage->txn_rollback; Koha::Plugins::Methods->delete; }; --