Browse Source

Bug 11814: Fix existing tests

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
3.20.x
Jonathan Druart 8 years ago
committed by Tomas Cohen Arazi
parent
commit
7c5c6b3ca9
  1. 2
      C4/Serials.pm
  2. 2
      t/db_dependent/Serials.t

2
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

2
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++;
}

Loading…
Cancel
Save