Bug 29284: Unit test

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit fa56c8b069)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
Nick Clemens 2021-10-21 10:08:05 +00:00 committed by Victor Grousset/tuxayo
parent ff0dce19a0
commit f2ccbd4f08
1 changed files with 4 additions and 1 deletions

View File

@ -187,7 +187,7 @@ subtest '_split_query() tests' => sub {
};
subtest 'clean_search_term() tests' => sub {
plan tests => 24;
plan tests => 25;
my $qb;
ok(
@ -239,6 +239,9 @@ subtest 'clean_search_term() tests' => sub {
$res = $qb->clean_search_term('test! and more');
is($res, 'test and more', 'remove exclamation sign at with space after it');
$res = $qb->clean_search_term('test! and more (and more!)');
is($res, 'test and more (and more)', 'remove exclamation sign followed by close parentheses');
$res = $qb->clean_search_term('!test');
is($res, '!test', 'exclamation sign left untouched');