View | Details | Raw Unified | Return to bug 34968
Collapse All | Expand All

(-)a/t/Search.t (-22 / +2 lines)
Lines 17-45 Link Here
17
17
18
use Modern::Perl;
18
use Modern::Perl;
19
19
20
use C4::Biblio;
20
use Test::More tests => 2;
21
use Test::More;
22
use Test::MockModule;
21
use Test::MockModule;
23
use Test::Warn;
22
use Test::Warn;
24
use t::lib::Mocks;
23
use t::lib::Mocks;
25
use t::lib::TestBuilder;
26
24
27
use Module::Load::Conditional qw/check_install/;
25
use C4::Search;
28
29
BEGIN {
30
    if ( check_install( module => 'Test::DBIx::Class' ) ) {
31
        plan tests => 4;
32
    } else {
33
        plan skip_all => "Need Test::DBIx::Class"
34
    }
35
}
36
37
# Mock the DB connexion and C4::Context
38
use Test::DBIx::Class;
39
40
use_ok('C4::Search');
41
can_ok('C4::Search',
42
    qw/_build_initial_query/);
43
26
44
subtest "_build_initial_query tests" => sub {
27
subtest "_build_initial_query tests" => sub {
45
28
Lines 187-194 subtest "searchResults PassItemMarcToXSLT test" => sub { Link Here
187
        return;
170
        return;
188
    });
171
    });
189
172
190
    my $builder = t::lib::TestBuilder->new;
191
192
    my $xml_record = q{
173
    my $xml_record = q{
193
<record
174
<record
194
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
175
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
195
- 

Return to bug 34968