diff --git a/t/Koha/SearchEngine/Elasticsearch/Search.t b/t/Koha/SearchEngine/Elasticsearch/Search.t index 6353793b10..cae1b2a96e 100755 --- a/t/Koha/SearchEngine/Elasticsearch/Search.t +++ b/t/Koha/SearchEngine/Elasticsearch/Search.t @@ -27,6 +27,7 @@ subtest 'search_auth_compat' => sub { plan tests => 4; t::lib::Mocks::mock_preference( 'QueryRegexEscapeOptions', 'dont_escape' ); + t::lib::Mocks::mock_preference( 'SearchEngine', 'Elasticsearch' ); my $search; ok(