Lines 438-443
my $orders = GetHistory( ordernumber => $ordernumbers[1] );
Link Here
|
438 |
is( scalar( @$orders ), 1, 'GetHistory with a given ordernumber returns 1 order' ); |
438 |
is( scalar( @$orders ), 1, 'GetHistory with a given ordernumber returns 1 order' ); |
439 |
$orders = GetHistory( ordernumber => $ordernumbers[1], search_children_too => 1 ); |
439 |
$orders = GetHistory( ordernumber => $ordernumbers[1], search_children_too => 1 ); |
440 |
is( scalar( @$orders ), 2, 'GetHistory with a given ordernumber and search_children_too set returns 2 orders' ); |
440 |
is( scalar( @$orders ), 2, 'GetHistory with a given ordernumber and search_children_too set returns 2 orders' ); |
|
|
441 |
$orders = GetHistory( ordernumbers => [$ordernumbers[1]] ); |
442 |
is( scalar( @$orders ), 1, 'GetHistory with a given ordernumbers returns 1 order' ); |
443 |
$orders = GetHistory( ordernumbers => \@ordernumbers ); |
444 |
is( scalar( @$orders ), scalar( @ordernumbers ) - 1, 'GetHistory with a list of ordernumbers returns N-1 orders (was has been deleted [3])' ); |
445 |
|
441 |
|
446 |
|
442 |
# Test GetHistory() with and without SearchWithISBNVariations |
447 |
# Test GetHistory() with and without SearchWithISBNVariations |
443 |
# The ISBN passed as a param is the ISBN-10 version of the 13-digit ISBN in the sample record declared in $marcxml |
448 |
# The ISBN passed as a param is the ISBN-10 version of the 13-digit ISBN in the sample record declared in $marcxml |
444 |
- |
|
|