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

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

Return to bug 7677