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:
parent
ff0dce19a0
commit
f2ccbd4f08
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue