@@ -, +, @@ --- t/Matcher.t | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- a/t/Matcher.t +++ a/t/Matcher.t @@ -33,10 +33,13 @@ BEGIN { } } -use_ok('C4::Matcher'); - use Test::DBIx::Class; +my $db = Test::MockModule->new('Koha::Database'); +$db->mock( _new_schema => sub { return Schema(); } ); + +use_ok('C4::Matcher'); + fixtures_ok [ MarcMatcher => [ [ 'matcher_id', 'code', 'description', 'record_type', 'threshold' ], @@ -45,9 +48,6 @@ fixtures_ok [ ], ], 'add fixtures'; -my $db = Test::MockModule->new('Koha::Database'); -$db->mock( _new_schema => sub { return Schema(); } ); - my @matchers = C4::Matcher::GetMatcherList(); is( $matchers[0]->{'matcher_id'}, 1, 'First matcher_id value is 1' ); --