From 198c7067bd49f2ccfef0a2a4291a960f42d9378e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 27 Apr 2020 11:55:15 +0200 Subject: [PATCH] Bug 23081: Adjust tests Signed-off-by: Lucas Gass Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson (cherry picked from commit 31dd98d6d418c0f74436a1241dd664f55e5f3d9d) Signed-off-by: Lucas Gass --- t/db_dependent/Items.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Items.t b/t/db_dependent/Items.t index 033b1f60e0..16a815d686 100755 --- a/t/db_dependent/Items.t +++ b/t/db_dependent/Items.t @@ -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; }; -- 2.39.5