From 8411cfd87cb2905b2a3c492f0bcfa79bb2826b5a 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 --- 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 6542d7e..fe0d0b0 100644 --- a/C4/Serials.pm +++ b/C4/Serials.pm @@ -852,7 +852,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 8fbb709..62ff86d 100644 --- a/t/db_dependent/Serials.t +++ b/t/db_dependent/Serials.t @@ -210,7 +210,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++; } -- 1.7.2.5