Bug 23081: Adjust tests

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit 31dd98d6d4)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2020-04-27 11:55:15 +02:00 committed by Lucas Gass
parent 64b72517a0
commit 198c7067bd
1 changed files with 2 additions and 2 deletions

View File

@ -544,7 +544,7 @@ subtest 'SearchItems test' => sub {
my $cpl_items_after = SearchItemsByField( 'homebranch', $library1->{branchcode});
is( ( scalar( @$cpl_items_after ) - scalar ( @$cpl_items_before ) ), 1, 'SearchItemsByField should return something' );
# Issues count may be NULL
# Issues count = 0
$filter = {
conjunction => 'AND',
filters => [
@ -561,7 +561,7 @@ subtest 'SearchItems test' => sub {
],
};
($items, $total_results) = SearchItems($filter);
is($total_results, 1, "Search items.issues is NULL with filter issues = 0");
is($total_results, 1, "Search items.issues issues = 0 returns result (items.issues defaults to 0)");
$schema->storage->txn_rollback;
};