Bug 5327 litte fix for Background tests
authorChris Cormack <chrisc@catalyst.net.nz>
Tue, 18 Jan 2011 03:35:08 +0000 (16:35 +1300)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 18 Jan 2011 03:35:08 +0000 (16:35 +1300)
t/BackgroundJob.t

index faee9c1..2726eb3 100644 (file)
@@ -5,16 +5,19 @@
 
 use strict;
 use warnings;
-
+use C4::Auth;
+use CGI;
 use Test::More tests => 8;
 
 BEGIN {
         use_ok('C4::BackgroundJob');
 }
-
+my $query = new CGI;
+my ($userid, $cookie, $sessionID) = &checkauth($query, 1);
 #my ($sessionID, $job_name, $job_invoker, $num_work_units) = @_;
 my $background;
-ok ($background=C4::BackgroundJob->new);
+diag $sessionID;
+ok ($background=C4::BackgroundJob->new($sessionID));
 ok ($background->id);
 
 $background->name("George");