@@ -, +, @@ for STATUS='' --- t/db_dependent/Suggestions.t | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- a/t/db_dependent/Suggestions.t +++ a/t/db_dependent/Suggestions.t @@ -28,7 +28,7 @@ use Koha::Library; use Koha::Libraries; use DateTime::Duration; -use Test::More tests => 105; +use Test::More tests => 106; use Test::Warn; BEGIN { @@ -303,6 +303,11 @@ $search_suggestion = SearchSuggestion({ STATUS => $mod_suggestion3->{STATUS}, }); is( @$search_suggestion, 1, 'SearchSuggestion returns the correct number of suggestions' ); + +$search_suggestion = SearchSuggestion({ + STATUS => q|| +}); +is( @$search_suggestion, 0, 'SearchSuggestion should not return all suggestions if we want the suggestions with a STATUS=""' ); $search_suggestion = SearchSuggestion({ STATUS => 'REJECTED', }); --