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

(-)a/t/db_dependent/Serials_2.t (-1 / +10 lines)
Lines 75-78 my $userenv = C4::Context->userenv; Link Here
75
is( C4::Serials::can_edit_subscription($subscription), 1, "User can edit a subscription with an empty branchcode");
75
is( C4::Serials::can_edit_subscription($subscription), 1, "User can edit a subscription with an empty branchcode");
76
#TODO add UT when C4::Auth->set_permissions (or setuserflags) will exist.
76
#TODO add UT when C4::Auth->set_permissions (or setuserflags) will exist.
77
77
78
# GetPreviousSerialid
79
my $serialid1 = NewIssue( 1, $subscriptionid, $biblionumber, 2 );
80
my $serialid2 = NewIssue( 2, $subscriptionid, $biblionumber, 2 );
81
my $serialid3 = NewIssue( 3, $subscriptionid, $biblionumber, 2 );
82
83
is( GetPreviousSerialid( $subscriptionid ), $serialid2, "get previous serialid without parameter");
84
is( GetPreviousSerialid( $subscriptionid, 1 ), $serialid2, "get previous serialid with 1" );
85
is( GetPreviousSerialid( $subscriptionid, 2 ), $serialid1, "get previous serialid with 2" );
86
is( GetPreviousSerialid( $subscriptionid, 3 ), undef, "get previous serialid with 3, does not exist" );
87
78
$dbh->rollback;
88
$dbh->rollback;
79
- 

Return to bug 7677