Bug 38782: Apply same fix for CounterFile.t

prove t/db_dependent/Koha/ERM/EUsage/CounterFile.t

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Edit: tidy (tcohen)
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit a297c42394)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
This commit is contained in:
Pedro Amorim 2024-12-24 10:47:25 +00:00 committed by wainuiwitikapark
parent 1013d5b74e
commit 549031d41b
1 changed files with 4 additions and 1 deletions

View File

@ -22,7 +22,7 @@ use Test::More tests => 2;
use Koha::Database;
use Koha::ERM::EUsage::CounterFile;
use JSON qw( decode_json );
use JSON qw( decode_json );
use File::Basename qw( dirname );
use File::Slurp;
@ -46,6 +46,9 @@ subtest 'store' => sub {
$schema->storage->txn_begin;
my $patron = Koha::Patrons->search()->last;
t::lib::Mocks::mock_userenv( { number => $patron->borrowernumber } ); # Is superlibrarian
my $usage_data_provider = $builder->build_object(
{ class => 'Koha::ERM::EUsage::UsageDataProviders', value => { name => 'TestProvider' } } );
$usage_data_provider->{report_type} = 'TR_J1';