Bug 9857: Fix failing tests
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
185927f209
commit
49778103ce
2 changed files with 3 additions and 3 deletions
|
@ -67,7 +67,7 @@ is(ref($suggestor), 'Koha::SuggestionEngine', 'Created suggestion engine');
|
|||
|
||||
my $result = $suggestor->get_suggestions({search => 'Cookery'});
|
||||
|
||||
is_deeply($result, [ { 'search' => 'an=1234', 'relevance' => 1, 'label' => 'Cooking' } ], "Suggested correct alternative to 'Cookery'");
|
||||
is_deeply($result, [ { 'search' => 'an:1234', 'relevance' => 1, 'label' => 'Cooking' } ], "Suggested correct alternative to 'Cookery'");
|
||||
|
||||
done_testing();
|
||||
|
||||
|
|
|
@ -106,11 +106,11 @@ is(ref($suggestor), 'Koha::SuggestionEngine', 'Created suggestion engine');
|
|||
|
||||
my $result = $suggestor->get_suggestions({search => 'Cookery'});
|
||||
|
||||
ok((grep { $_->{'search'} eq 'su-na=Cookery' } @$result) && (grep { $_->{'search'} eq 'su-br=Cookery' } @$result) && (grep { $_->{'search'} eq 'su-rl=Cookery' } @$result), "Suggested correct alternatives for keyword search 'Cookery'");
|
||||
ok((grep { $_->{'search'} eq 'su-na:Cookery' } @$result) && (grep { $_->{'search'} eq 'su-br:Cookery' } @$result) && (grep { $_->{'search'} eq 'su-rl:Cookery' } @$result), "Suggested correct alternatives for keyword search 'Cookery'");
|
||||
|
||||
$result = $suggestor->get_suggestions({search => 'su:Cookery'});
|
||||
|
||||
ok((grep { $_->{'search'} eq 'su-na=Cookery' } @$result) && (grep { $_->{'search'} eq 'su-br=Cookery' } @$result) && (grep { $_->{'search'} eq 'su-rl=Cookery' } @$result), "Suggested correct alternatives for subject search 'Cookery'");
|
||||
ok((grep { $_->{'search'} eq 'su-na:Cookery' } @$result) && (grep { $_->{'search'} eq 'su-br:Cookery' } @$result) && (grep { $_->{'search'} eq 'su-rl:Cookery' } @$result), "Suggested correct alternatives for subject search 'Cookery'");
|
||||
|
||||
$result = $suggestor->get_suggestions({search => 'nt:Cookery'});
|
||||
|
||||
|
|
Loading…
Reference in a new issue