Lines 20-26
our $child;
Link Here
|
20 |
|
20 |
|
21 |
subtest 'test_search' => sub { |
21 |
subtest 'test_search' => sub { |
22 |
|
22 |
|
23 |
plan tests => 20; |
23 |
plan tests => 19; |
24 |
|
24 |
|
25 |
t::lib::Mocks::mock_preference('SearchEngine', 'Elasticsearch'); |
25 |
t::lib::Mocks::mock_preference('SearchEngine', 'Elasticsearch'); |
26 |
|
26 |
|
Lines 114-121
subtest 'test_search' => sub {
Link Here
|
114 |
ok($returned2, 'Record 2 returned as MARCXML'); |
114 |
ok($returned2, 'Record 2 returned as MARCXML'); |
115 |
is($returned2->as_xml, $marc_record_2->as_xml, 'Record 2 returned properly'); |
115 |
is($returned2->as_xml, $marc_record_2->as_xml, 'Record 2 returned properly'); |
116 |
|
116 |
|
117 |
is($rs->record(2), undef, 'Record 3 does not exist'); |
|
|
118 |
|
119 |
# SRU protocol tests |
117 |
# SRU protocol tests |
120 |
my $base = 'http://localhost:42111'; |
118 |
my $base = 'http://localhost:42111'; |
121 |
my $ns = 'http://docs.oasis-open.org/ns/search-ws/sruResponse'; |
119 |
my $ns = 'http://docs.oasis-open.org/ns/search-ws/sruResponse'; |