Lines 103-110
$se->mock( 'get_elasticsearch_mappings', sub {
Link Here
|
103 |
|
103 |
|
104 |
my $cache = Koha::Caches->get_instance(); |
104 |
my $cache = Koha::Caches->get_instance(); |
105 |
my $clear_search_fields_cache = sub { |
105 |
my $clear_search_fields_cache = sub { |
106 |
$cache->clear_from_cache('elasticsearch_search_fields_staff_client'); |
106 |
$cache->clear_from_cache('elasticsearch_search_fields_staff_client_biblios'); |
107 |
$cache->clear_from_cache('elasticsearch_search_fields_opac'); |
107 |
$cache->clear_from_cache('elasticsearch_search_fields_opac_biblios'); |
|
|
108 |
$cache->clear_from_cache('elasticsearch_search_fields_staff_client_authorities'); |
109 |
$cache->clear_from_cache('elasticsearch_search_fields_opac_authorities'); |
108 |
}; |
110 |
}; |
109 |
|
111 |
|
110 |
subtest 'build_authorities_query_compat() tests' => sub { |
112 |
subtest 'build_authorities_query_compat() tests' => sub { |