View | Details | Raw Unified | Return to bug 16325
Collapse All | Expand All

(-)a/t/db_dependent/Suggestions.t (-2 / +6 lines)
Lines 28-34 use Koha::Library; Link Here
28
use Koha::Libraries;
28
use Koha::Libraries;
29
29
30
use DateTime::Duration;
30
use DateTime::Duration;
31
use Test::More tests => 105;
31
use Test::More tests => 106;
32
use Test::Warn;
32
use Test::Warn;
33
33
34
BEGIN {
34
BEGIN {
Lines 303-308 $search_suggestion = SearchSuggestion({ Link Here
303
    STATUS => $mod_suggestion3->{STATUS},
303
    STATUS => $mod_suggestion3->{STATUS},
304
});
304
});
305
is( @$search_suggestion, 1, 'SearchSuggestion returns the correct number of suggestions' );
305
is( @$search_suggestion, 1, 'SearchSuggestion returns the correct number of suggestions' );
306
307
$search_suggestion = SearchSuggestion({
308
    STATUS => q||
309
});
310
is( @$search_suggestion, 0, 'SearchSuggestion should not return all suggestions if we want the suggestions with a STATUS=""' );
306
$search_suggestion = SearchSuggestion({
311
$search_suggestion = SearchSuggestion({
307
    STATUS => 'REJECTED',
312
    STATUS => 'REJECTED',
308
});
313
});
309
- 

Return to bug 16325