Lines 23-29
use Koha::Database;
Link Here
|
23 |
use Koha::BackgroundJobs; |
23 |
use Koha::BackgroundJobs; |
24 |
use Koha::BackgroundJob::ErmSushiHarvester; |
24 |
use Koha::BackgroundJob::ErmSushiHarvester; |
25 |
|
25 |
|
26 |
use JSON qw( decode_json ); |
26 |
use JSON qw( decode_json ); |
27 |
use File::Basename qw( dirname ); |
27 |
use File::Basename qw( dirname ); |
28 |
use File::Slurp; |
28 |
use File::Slurp; |
29 |
|
29 |
|
Lines 86-91
subtest 'enqueue_sushi_harvest_jobs' => sub {
Link Here
|
86 |
|
86 |
|
87 |
$schema->storage->txn_begin; |
87 |
$schema->storage->txn_begin; |
88 |
|
88 |
|
|
|
89 |
my $patron = Koha::Patrons->search()->last; |
90 |
t::lib::Mocks::mock_userenv( { number => $patron->borrowernumber } ); # Is superlibrarian |
91 |
|
89 |
my $usage_data_provider = $builder->build_object( |
92 |
my $usage_data_provider = $builder->build_object( |
90 |
{ class => 'Koha::ERM::EUsage::UsageDataProviders', value => { name => 'TestProvider' } } ); |
93 |
{ class => 'Koha::ERM::EUsage::UsageDataProviders', value => { name => 'TestProvider' } } ); |
91 |
|
94 |
|
92 |
- |
|
|