Lines 37-43
subtest 'CancelExpiredReserves tests incl. holidays' => sub {
Link Here
|
37 |
source => 'Reserve', |
37 |
source => 'Reserve', |
38 |
value => { |
38 |
value => { |
39 |
reservedate => $reserve_reservedate, |
39 |
reservedate => $reserve_reservedate, |
40 |
expirationdate => $reserve1_expirationdate, |
40 |
patron_expiration_date => $reserve1_expirationdate, |
41 |
cancellationdate => undef, |
41 |
cancellationdate => undef, |
42 |
priority => 0, |
42 |
priority => 0, |
43 |
found => 'W', |
43 |
found => 'W', |
Lines 56-62
subtest 'CancelExpiredReserves tests incl. holidays' => sub {
Link Here
|
56 |
source => 'Reserve', |
56 |
source => 'Reserve', |
57 |
value => { |
57 |
value => { |
58 |
reservedate => $reserve_reservedate, |
58 |
reservedate => $reserve_reservedate, |
59 |
expirationdate => $reserve2_expirationdate, |
59 |
patron_expiration_date => $reserve2_expirationdate, |
60 |
cancellationdate => undef, |
60 |
cancellationdate => undef, |
61 |
priority => 0, |
61 |
priority => 0, |
62 |
found => 'W', |
62 |
found => 'W', |
Lines 72-78
subtest 'CancelExpiredReserves tests incl. holidays' => sub {
Link Here
|
72 |
source => 'Reserve', |
72 |
source => 'Reserve', |
73 |
value => { |
73 |
value => { |
74 |
reservedate => $reserve_reservedate, |
74 |
reservedate => $reserve_reservedate, |
75 |
expirationdate => $reserve2_expirationdate, |
75 |
patron_expiration_date => $reserve2_expirationdate, |
76 |
branchcode => 'LIB1', |
76 |
branchcode => 'LIB1', |
77 |
cancellationdate => undef, |
77 |
cancellationdate => undef, |
78 |
priority => 0, |
78 |
priority => 0, |
Lines 172-178
subtest 'Test handling of in transit reserves by CancelExpiredReserves' => sub {
Link Here
|
172 |
my $reserve = $builder->build({ |
172 |
my $reserve = $builder->build({ |
173 |
source => 'Reserve', |
173 |
source => 'Reserve', |
174 |
value => { |
174 |
value => { |
175 |
expirationdate => '2018-01-01', |
175 |
patron_expiration_date => '2018-01-01', |
176 |
found => 'T', |
176 |
found => 'T', |
177 |
cancellationdate => undef, |
177 |
cancellationdate => undef, |
178 |
suspend => 0, |
178 |
suspend => 0, |
Lines 187-193
subtest 'Test handling of in transit reserves by CancelExpiredReserves' => sub {
Link Here
|
187 |
my $reserve2 = $builder->build({ |
187 |
my $reserve2 = $builder->build({ |
188 |
source => 'Reserve', |
188 |
source => 'Reserve', |
189 |
value => { |
189 |
value => { |
190 |
expirationdate => '2018-01-01', |
190 |
patron_expiration_date => '2018-01-01', |
191 |
found => 'T', |
191 |
found => 'T', |
192 |
cancellationdate => undef, |
192 |
cancellationdate => undef, |
193 |
suspend => 0, |
193 |
suspend => 0, |
Lines 208-214
subtest 'Test handling of cancellation reason if passed' => sub {
Link Here
|
208 |
my $reserve = $builder->build({ |
208 |
my $reserve = $builder->build({ |
209 |
source => 'Reserve', |
209 |
source => 'Reserve', |
210 |
value => { |
210 |
value => { |
211 |
expirationdate => '2018-01-01', |
211 |
patron_expiration_date => '2018-01-01', |
212 |
found => 'T', |
212 |
found => 'T', |
213 |
cancellationdate => undef, |
213 |
cancellationdate => undef, |
214 |
suspend => 0, |
214 |
suspend => 0, |
215 |
- |
|
|