projects
/
koha_ffzg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1144c92
)
Bug 5327 litte fix for Background tests
author
Chris Cormack
<chrisc@catalyst.net.nz>
Tue, 18 Jan 2011 03:35:08 +0000
(16:35 +1300)
committer
Chris Cormack
<chrisc@catalyst.net.nz>
Tue, 18 Jan 2011 03:35:08 +0000
(16:35 +1300)
t/BackgroundJob.t
patch
|
blob
|
history
diff --git
a/t/BackgroundJob.t
b/t/BackgroundJob.t
index
faee9c1
..
2726eb3
100644
(file)
--- a/
t/BackgroundJob.t
+++ b/
t/BackgroundJob.t
@@
-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");