View | Details | Raw Unified | Return to bug 29976
Collapse All | Expand All

(-)a/t/db_dependent/Holds/WaitingReserves.t (-4 / +4 lines)
Lines 82-88 my $reserve1 = $builder->build({ Link Here
82
    value => {
82
    value => {
83
        borrowernumber => $patron1->{borrowernumber},
83
        borrowernumber => $patron1->{borrowernumber},
84
        reservedate => $reserve1_reservedate->ymd,
84
        reservedate => $reserve1_reservedate->ymd,
85
        expirationdate => undef,
85
        patron_expiration_date => undef,
86
        biblionumber => $biblio->biblionumber,
86
        biblionumber => $biblio->biblionumber,
87
        branchcode => 'LIB1',
87
        branchcode => 'LIB1',
88
        priority => 1,
88
        priority => 1,
Lines 107-113 my $reserve2 = $builder->build({ Link Here
107
    value => {
107
    value => {
108
        borrowernumber => $patron2->{borrowernumber},
108
        borrowernumber => $patron2->{borrowernumber},
109
        reservedate => $reserve1_reservedate->ymd,
109
        reservedate => $reserve1_reservedate->ymd,
110
        expirationdate => undef,
110
        patron_expiration_date => undef,
111
        biblionumber => $biblio2->biblionumber,
111
        biblionumber => $biblio2->biblionumber,
112
        branchcode => 'LIB1',
112
        branchcode => 'LIB1',
113
        priority => 1,
113
        priority => 1,
Lines 127-133 my $reserve3 = $builder->build({ Link Here
127
    value => {
127
    value => {
128
        borrowernumber => $patron2->{borrowernumber},
128
        borrowernumber => $patron2->{borrowernumber},
129
        reservedate => $reserve1_reservedate->ymd,
129
        reservedate => $reserve1_reservedate->ymd,
130
        expirationdate => undef,
130
        patron_expiration_date => undef,
131
        biblionumber => $biblio3->biblionumber,
131
        biblionumber => $biblio3->biblionumber,
132
        branchcode => 'LIB1',
132
        branchcode => 'LIB1',
133
        priority => 1,
133
        priority => 1,
Lines 185-191 my $reserve4 = $builder->build({ Link Here
185
    value => {
185
    value => {
186
        borrowernumber => $patron2->{borrowernumber},
186
        borrowernumber => $patron2->{borrowernumber},
187
        reservedate => $reserve4_reservedate->ymd,
187
        reservedate => $reserve4_reservedate->ymd,
188
        expirationdate => $requested_expiredate->ymd,
188
        patron_expiration_date => $requested_expiredate->ymd,
189
        biblionumber => $biblio4->biblionumber,
189
        biblionumber => $biblio4->biblionumber,
190
        branchcode => 'LIB1',
190
        branchcode => 'LIB1',
191
        priority => 1,
191
        priority => 1,
(-)a/t/db_dependent/Reserves/CancelExpiredReserves.t (-7 / +6 lines)
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
- 

Return to bug 29976