Lines 58-68
my $pattern = $builder->build({
Link Here
|
58 |
} |
58 |
} |
59 |
}); |
59 |
}); |
60 |
|
60 |
|
|
|
61 |
my $biblio = $builder->build_sample_biblio(); |
62 |
|
61 |
# Create fake subscription, daily subscription, duration 12 months, issues startint at #100 |
63 |
# Create fake subscription, daily subscription, duration 12 months, issues startint at #100 |
62 |
my $subscription = $builder->build({ |
64 |
my $subscription = $builder->build({ |
63 |
source => 'Subscription', |
65 |
source => 'Subscription', |
64 |
value => { |
66 |
value => { |
65 |
biblionumber => 1, |
67 |
biblionumber => $biblio->biblionumber, |
66 |
startdate => '2015-01-01', |
68 |
startdate => '2015-01-01', |
67 |
enddate => '2015-12-31', |
69 |
enddate => '2015-12-31', |
68 |
aqbooksellerid => 1, |
70 |
aqbooksellerid => 1, |
Lines 75-80
my $subscription = $builder->build({
Link Here
|
75 |
my $subscriptionhistory = $builder->build({ |
77 |
my $subscriptionhistory = $builder->build({ |
76 |
source => 'Subscriptionhistory', |
78 |
source => 'Subscriptionhistory', |
77 |
value => { |
79 |
value => { |
|
|
80 |
biblionumber => $biblio->biblionumber, |
78 |
subscriptionid => $subscription->{subscriptionid}, |
81 |
subscriptionid => $subscription->{subscriptionid}, |
79 |
histenddate => undef, |
82 |
histenddate => undef, |
80 |
opacnote => 'Testing', |
83 |
opacnote => 'Testing', |
Lines 82-88
my $subscriptionhistory = $builder->build({
Link Here
|
82 |
}); |
85 |
}); |
83 |
|
86 |
|
84 |
# Actual testing starts here! |
87 |
# Actual testing starts here! |
85 |
|
|
|
86 |
# Renew the subscription and check that enddate has not been set |
88 |
# Renew the subscription and check that enddate has not been set |
87 |
ReNewSubscription( |
89 |
ReNewSubscription( |
88 |
{ |
90 |
{ |
89 |
- |
|
|