From 652f16d19419d56d9f5258c77b7494889f113d81 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 --- 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 c07c66703e..61a691b458 100755 --- a/t/db_dependent/Items.t +++ b/t/db_dependent/Items.t @@ -611,7 +611,7 @@ subtest 'SearchItems test' => sub { my ($cpl_items_after) = SearchItems( { field => 'homebranch', query => $library1->{branchcode} } ); is( ( scalar( @$cpl_items_after ) - scalar ( @$cpl_items_before ) ), 1, 'SearchItems should return something' ); - # Issues count may be NULL + # Issues count = 0 $filter = { conjunction => 'AND', filters => [ @@ -628,7 +628,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.2