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

(-)a/t/Matcher.t (-6 / +5 lines)
Lines 33-42 BEGIN { Link Here
33
    }
33
    }
34
}
34
}
35
35
36
use_ok('C4::Matcher');
37
38
use Test::DBIx::Class;
36
use Test::DBIx::Class;
39
37
38
my $db = Test::MockModule->new('Koha::Database');
39
$db->mock( _new_schema => sub { return Schema(); } );
40
41
use_ok('C4::Matcher');
42
40
fixtures_ok [
43
fixtures_ok [
41
    MarcMatcher => [
44
    MarcMatcher => [
42
        [ 'matcher_id', 'code', 'description', 'record_type', 'threshold' ],
45
        [ 'matcher_id', 'code', 'description', 'record_type', 'threshold' ],
Lines 45-53 fixtures_ok [ Link Here
45
    ],
48
    ],
46
], 'add fixtures';
49
], 'add fixtures';
47
50
48
my $db = Test::MockModule->new('Koha::Database');
49
$db->mock( _new_schema => sub { return Schema(); } );
50
51
my @matchers = C4::Matcher::GetMatcherList();
51
my @matchers = C4::Matcher::GetMatcherList();
52
52
53
is( $matchers[0]->{'matcher_id'}, 1, 'First matcher_id value is 1' );
53
is( $matchers[0]->{'matcher_id'}, 1, 'First matcher_id value is 1' );
54
- 

Return to bug 18712