|
Lines 69-74
subtest "_search tests" => sub {
Link Here
|
| 69 |
|
69 |
|
| 70 |
t::lib::Mocks::mock_preference('marcflavour', 'MARC21'); |
70 |
t::lib::Mocks::mock_preference('marcflavour', 'MARC21'); |
| 71 |
t::lib::Mocks::mock_preference('SearchEngine', 'Elasticsearch'); |
71 |
t::lib::Mocks::mock_preference('SearchEngine', 'Elasticsearch'); |
|
|
72 |
# NOTE: We are testing solely against ES here to make the assumptions simpler while testing |
| 73 |
# C4/Headings code specifically. The actual query building and searching code should |
| 74 |
# be covered in other test files |
| 72 |
my $search = Test::MockModule->new('Koha::SearchEngine::Elasticsearch::Search'); |
75 |
my $search = Test::MockModule->new('Koha::SearchEngine::Elasticsearch::Search'); |
| 73 |
|
76 |
|
| 74 |
$search->mock('search_auth_compat', sub { |
77 |
$search->mock('search_auth_compat', sub { |
| 75 |
- |
|
|