Lines 16-23
Link Here
|
16 |
|
16 |
|
17 |
use Modern::Perl; |
17 |
use Modern::Perl; |
18 |
use File::Basename; |
18 |
use File::Basename; |
19 |
use Test::More tests => 4; |
19 |
use Test::More tests => 5; |
20 |
use Test::MockModule; |
20 |
use Test::MockModule; |
|
|
21 |
use Test::NoWarnings; |
21 |
use Test::Warn; |
22 |
use Test::Warn; |
22 |
|
23 |
|
23 |
use t::lib::Mocks; |
24 |
use t::lib::Mocks; |
Lines 86-92
subtest 'after_recall_action hook' => sub {
Link Here
|
86 |
|
87 |
|
87 |
C4::Circulation::AddIssue( $patron2, $item->barcode ); |
88 |
C4::Circulation::AddIssue( $patron2, $item->barcode ); |
88 |
|
89 |
|
89 |
warnings_exist { |
90 |
warnings_like { |
90 |
Koha::Recalls->add_recall( |
91 |
Koha::Recalls->add_recall( |
91 |
{ |
92 |
{ |
92 |
patron => $patron1, |
93 |
patron => $patron1, |
Lines 98-104
subtest 'after_recall_action hook' => sub {
Link Here
|
98 |
} |
99 |
} |
99 |
); |
100 |
); |
100 |
} |
101 |
} |
101 |
qr/after_recall_action called with action: add, ref: Koha::Recall/, |
102 |
[ |
|
|
103 |
qr/transform_prepared_letter called with letter content/, |
104 |
qr/after_recall_action called with action: add, ref: Koha::Recall/ |
105 |
], |
102 |
'->add_recall calls the after_recall_action hook with action add'; |
106 |
'->add_recall calls the after_recall_action hook with action add'; |
103 |
|
107 |
|
104 |
Koha::Plugins->RemovePlugins; |
108 |
Koha::Plugins->RemovePlugins; |
105 |
- |
|
|