From d29f8c6cc9989e421deede58a172b06c14a56b69 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 23 Dec 2014 16:51:41 +0100 Subject: [PATCH] Bug 7677: Fix tests They don't pass since bug 12098 has been pushed. Signed-off-by: Brendan Gallagher http://bugs.koha-community.org/show_bug.cgi?id=7767 --- t/db_dependent/Serials_2.t | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/t/db_dependent/Serials_2.t b/t/db_dependent/Serials_2.t index 52662b2..961edb3 100644 --- a/t/db_dependent/Serials_2.t +++ b/t/db_dependent/Serials_2.t @@ -1,7 +1,7 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 46; +use Test::More tests => 50; use MARC::Record; @@ -247,14 +247,14 @@ is( C4::Serials::can_show_subscription($subscription_from_another_branch), 1, $schema->storage->txn_rollback; # GetPreviousSerialid -my $serialid1 = NewIssue( 1, $subscriptionid, $biblionumber, 2 ); -my $serialid2 = NewIssue( 2, $subscriptionid, $biblionumber, 2 ); -my $serialid3 = NewIssue( 3, $subscriptionid, $biblionumber, 2 ); - -is( GetPreviousSerialid( $subscriptionid ), $serialid2, "get previous serialid without parameter"); -is( GetPreviousSerialid( $subscriptionid, 1 ), $serialid2, "get previous serialid with 1" ); -is( GetPreviousSerialid( $subscriptionid, 2 ), $serialid1, "get previous serialid with 2" ); -is( GetPreviousSerialid( $subscriptionid, 3 ), undef, "get previous serialid with 3, does not exist" ); +my $serialid1 = NewIssue( 1, $subscriptionid_from_my_branch, $biblionumber, 2 ); +my $serialid2 = NewIssue( 2, $subscriptionid_from_my_branch, $biblionumber, 2 ); +my $serialid3 = NewIssue( 3, $subscriptionid_from_my_branch, $biblionumber, 2 ); + +is( GetPreviousSerialid( $subscriptionid_from_my_branch ), $serialid2, "get previous serialid without parameter"); +is( GetPreviousSerialid( $subscriptionid_from_my_branch, 1 ), $serialid2, "get previous serialid with 1" ); +is( GetPreviousSerialid( $subscriptionid_from_my_branch, 2 ), $serialid1, "get previous serialid with 2" ); +is( GetPreviousSerialid( $subscriptionid_from_my_branch, 3 ), undef, "get previous serialid with 3, does not exist" ); $dbh->rollback; -- 1.7.10.4