Bug 11814: Fix existing tests
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 19 Dec 2014 14:48:49 +0000 (15:48 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 30 Apr 2015 18:33:12 +0000 (15:33 -0300)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Serials.pm
t/db_dependent/Serials.t

index 83884d4..b52b7a9 100644 (file)
@@ -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
 
index 4777116..a156b94 100644 (file)
@@ -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++;
 }