Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
subtest 'after_circ_action() hook tests' => sub {
- plan tests => 2;
+ plan tests => 3;
$schema->storage->txn_begin;
'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;
};