Bug 27272: Remove GetItemsInfo, GetItemsLocationInfo and GetHostItemsInfo
[koha-ffzg.git] / t / db_dependent / BackgroundJob.t
index 2a9e821..459f3b2 100755 (executable)
@@ -1,16 +1,16 @@
 #!/usr/bin/perl
 
 use Modern::Perl;
-use C4::Auth;
+use C4::Auth qw( get_session );
 use CGI qw ( -utf8 );
 use Test::More tests => 18;
 
 use Koha::Database;
 
 BEGIN {
-    use_ok('C4::BackgroundJob');
+    use_ok('C4::BackgroundJob', qw( get id fetch name invoker progress status size set finish results clear ));
 }
-my $query = new CGI;
+my $query = CGI->new;
 
 my $schema = Koha::Database->new->schema;
 $schema->storage->txn_begin;