Bug 19349: (QA follow-up) Cosmetic changes
[koha.git] / t / Matcher.t
index 3d7f6e9..3a5494e 100755 (executable)
@@ -33,14 +33,12 @@ BEGIN {
     }
 }
 
-use_ok('C4::Matcher');
+use Test::DBIx::Class;
+
+my $db = Test::MockModule->new('Koha::Database');
+$db->mock( _new_schema => sub { return Schema(); } );
 
-use Test::DBIx::Class {
-    schema_class => 'Koha::Schema',
-    connect_info => ['dbi:SQLite:dbname=:memory:','',''],
-    connect_opts => { name_sep => '.', quote_char => '`', },
-    fixture_class => '::Populate',
-}, 'MarcMatcher' ;
+use_ok('C4::Matcher');
 
 fixtures_ok [
     MarcMatcher => [
@@ -50,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' );
@@ -316,4 +311,3 @@ sub get_authors_matchpoint {
     return $matchpoint;
 }
 
-1;