From 7c5c6b3ca9b6b74512505ad5a603447856af31f9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 19 Dec 2014 15:48:49 +0100 Subject: [PATCH] Bug 11814: Fix existing tests Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- C4/Serials.pm | 2 +- t/db_dependent/Serials.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Serials.pm b/C4/Serials.pm index 83884d4f61..b52b7a9c02 100644 --- a/C4/Serials.pm +++ b/C4/Serials.pm @@ -718,7 +718,7 @@ this function returns every serial waited for a given subscription as well as the number of issues registered in the database (all types) this number is used to see if a subscription can be deleted (=it must have only 1 issue) -$statuses is an arrayref of statuses. +$statuses is an arrayref of statuses and is mandatory. =cut diff --git a/t/db_dependent/Serials.t b/t/db_dependent/Serials.t index 477711627f..a156b94498 100644 --- a/t/db_dependent/Serials.t +++ b/t/db_dependent/Serials.t @@ -217,7 +217,7 @@ my @statuses = qw( 2 2 3 3 3 3 3 4 4 41 42 43 44 5 ); my $counter = 0; for my $status ( @statuses ) { my $serialseq = "No.".$counter; - my ( $expected_serial ) = GetSerials2( $subscriptionid, 1 ); + my ( $expected_serial ) = GetSerials2( $subscriptionid, [1] ); C4::Serials::ModSerialStatus( $expected_serial->{serialid}, $serialseq, $publisheddate, $publisheddate, $statuses[$counter], 'an useless note' ); $counter++; } -- 2.39.5