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

(-)a/t/db_dependent/Serials_2.t (-1 / +10 lines)
Lines 204-209 is( C4::Serials::can_show_subscription($subscription_from_another_branch), 1, Link Here
204
"Without IndependentBranches, renew_subscription cannot show a subscription from another branch"
204
"Without IndependentBranches, renew_subscription cannot show a subscription from another branch"
205
);
205
);
206
206
207
# GetPreviousSerialid
208
my $serialid1 = NewIssue( 1, $subscriptionid, $biblionumber, 2 );
209
my $serialid2 = NewIssue( 2, $subscriptionid, $biblionumber, 2 );
210
my $serialid3 = NewIssue( 3, $subscriptionid, $biblionumber, 2 );
211
212
is( GetPreviousSerialid( $subscriptionid ), $serialid2, "get previous serialid without parameter");
213
is( GetPreviousSerialid( $subscriptionid, 1 ), $serialid2, "get previous serialid with 1" );
214
is( GetPreviousSerialid( $subscriptionid, 2 ), $serialid1, "get previous serialid with 2" );
215
is( GetPreviousSerialid( $subscriptionid, 3 ), undef, "get previous serialid with 3, does not exist" );
216
207
$dbh->rollback;
217
$dbh->rollback;
208
218
209
# C4::Context->userenv
219
# C4::Context->userenv
210
- 

Return to bug 7677