X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2Fdb_dependent%2FBackgroundJob.t;h=9ea2caa674f898d45cd55eb52ff23a0c19b0f194;hb=01c7c2a12904fae5076914d839c5e829c54deb6f;hp=0afa3158c0fea03033965dffc5a350d3e266c77e;hpb=367c4fb8815bfe4a01869a25bcd8222989c15dcd;p=koha.git diff --git a/t/db_dependent/BackgroundJob.t b/t/db_dependent/BackgroundJob.t index 0afa3158c0..9ea2caa674 100644 --- a/t/db_dependent/BackgroundJob.t +++ b/t/db_dependent/BackgroundJob.t @@ -6,8 +6,8 @@ use strict; use warnings; use C4::Auth; -use CGI; -use Test::More tests => 11; +use CGI qw ( -utf8 ); +use Test::More tests => 14; BEGIN { use_ok('C4::BackgroundJob'); @@ -36,6 +36,12 @@ is ($background->size, "56", "testing size"); ok (!$background->fetch($sessionID, $background->id), "testing fetch"); +$background->set({ key1 => 'value1', key2 => 'value2' }); +is ($background->get('key1'), 'value1', 'fetched extra value for key key1'); +is ($background->get('key2'), 'value2', 'fetched extra value for key key2'); + +$background->set({ size => 666 }); +is ($background->size, "56", '->set() does not scribble over private object data'); $background->finish("finished"); is ($background->status,'completed', "testing finished");