projects
/
koha_ffzg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9bbeae
)
Bug 5327 : Complete coverage for BackgroundJob.pm
author
Chris Cormack
<chrisc@catalyst.net.nz>
Sun, 4 Dec 2011 07:02:45 +0000
(20:02 +1300)
committer
Paul Poulain
<paul.poulain@biblibre.com>
Wed, 7 Dec 2011 15:17:08 +0000
(16:17 +0100)
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Tests run without problems.
t/db_dependent/BackgroundJob.t
patch
|
blob
|
history
diff --git
a/t/db_dependent/BackgroundJob.t
b/t/db_dependent/BackgroundJob.t
index
2726eb3
..
8106e02
100644
(file)
--- a/
t/db_dependent/BackgroundJob.t
+++ b/
t/db_dependent/BackgroundJob.t
@@
-7,7
+7,7
@@
use strict;
use warnings;
use C4::Auth;
use CGI;
-use Test::More tests =>
8
;
+use Test::More tests =>
10
;
BEGIN {
use_ok('C4::BackgroundJob');
@@
-34,3
+34,7
@@
ok ($background->status);
$background->size("56");
is ($background->size, "56", "testing size");
+$background->finish("finished");
+is ($background->status,'completed', "testing finished");
+
+ok ($background->results); # Will return undef unless finished
\ No newline at end of file