|
Lines 45-50
my $sushi_counter_5_response_TR_J1 = decode_json( read_file($sushi_response_file
Link Here
|
| 45 |
my $report_items = $sushi_counter_5_response_TR_J1->{Report_Items}; |
45 |
my $report_items = $sushi_counter_5_response_TR_J1->{Report_Items}; |
| 46 |
my $sushi_counter_TR_J1 = Koha::ERM::EUsage::SushiCounter->new( { response => $sushi_counter_5_response_TR_J1 } ); |
46 |
my $sushi_counter_TR_J1 = Koha::ERM::EUsage::SushiCounter->new( { response => $sushi_counter_5_response_TR_J1 } ); |
| 47 |
|
47 |
|
|
|
48 |
my $librarian = $builder->build_object( |
| 49 |
{ |
| 50 |
class => 'Koha::Patrons', |
| 51 |
value => { flags => 2**28 } |
| 52 |
} |
| 53 |
); |
| 54 |
my $password = 'thePassword123'; |
| 55 |
$librarian->set_password( { password => $password, skip_validation => 1 } ); |
| 56 |
my $userid = $librarian->userid; |
| 57 |
t::lib::Mocks::mock_userenv( { number => $userid } ); |
| 58 |
|
| 48 |
subtest "monthly_report" => sub { |
59 |
subtest "monthly_report" => sub { |
| 49 |
plan tests => 17; |
60 |
plan tests => 17; |
| 50 |
|
61 |
|
|
Lines 64-79
subtest "monthly_report" => sub {
Link Here
|
| 64 |
] |
75 |
] |
| 65 |
); |
76 |
); |
| 66 |
|
77 |
|
| 67 |
my $librarian = $builder->build_object( |
|
|
| 68 |
{ |
| 69 |
class => 'Koha::Patrons', |
| 70 |
value => { flags => 2**28 } |
| 71 |
} |
| 72 |
); |
| 73 |
my $password = 'thePassword123'; |
| 74 |
$librarian->set_password( { password => $password, skip_validation => 1 } ); |
| 75 |
my $userid = $librarian->userid; |
| 76 |
|
| 77 |
my $patron = $builder->build_object( |
78 |
my $patron = $builder->build_object( |
| 78 |
{ |
79 |
{ |
| 79 |
class => 'Koha::Patrons', |
80 |
class => 'Koha::Patrons', |
|
Lines 162-177
subtest "yearly_report" => sub {
Link Here
|
| 162 |
] |
163 |
] |
| 163 |
); |
164 |
); |
| 164 |
|
165 |
|
| 165 |
my $librarian = $builder->build_object( |
|
|
| 166 |
{ |
| 167 |
class => 'Koha::Patrons', |
| 168 |
value => { flags => 2**28 } |
| 169 |
} |
| 170 |
); |
| 171 |
my $password = 'thePassword123'; |
| 172 |
$librarian->set_password( { password => $password, skip_validation => 1 } ); |
| 173 |
my $userid = $librarian->userid; |
| 174 |
|
| 175 |
my $patron = $builder->build_object( |
166 |
my $patron = $builder->build_object( |
| 176 |
{ |
167 |
{ |
| 177 |
class => 'Koha::Patrons', |
168 |
class => 'Koha::Patrons', |
|
Lines 251-266
subtest "metric_types_report" => sub {
Link Here
|
| 251 |
] |
242 |
] |
| 252 |
); |
243 |
); |
| 253 |
|
244 |
|
| 254 |
my $librarian = $builder->build_object( |
|
|
| 255 |
{ |
| 256 |
class => 'Koha::Patrons', |
| 257 |
value => { flags => 2**28 } |
| 258 |
} |
| 259 |
); |
| 260 |
my $password = 'thePassword123'; |
| 261 |
$librarian->set_password( { password => $password, skip_validation => 1 } ); |
| 262 |
my $userid = $librarian->userid; |
| 263 |
|
| 264 |
my $patron = $builder->build_object( |
245 |
my $patron = $builder->build_object( |
| 265 |
{ |
246 |
{ |
| 266 |
class => 'Koha::Patrons', |
247 |
class => 'Koha::Patrons', |
|
Lines 346-361
subtest "provider_rollup_report" => sub {
Link Here
|
| 346 |
] |
327 |
] |
| 347 |
); |
328 |
); |
| 348 |
|
329 |
|
| 349 |
my $librarian = $builder->build_object( |
|
|
| 350 |
{ |
| 351 |
class => 'Koha::Patrons', |
| 352 |
value => { flags => 2**28 } |
| 353 |
} |
| 354 |
); |
| 355 |
my $password = 'thePassword123'; |
| 356 |
$librarian->set_password( { password => $password, skip_validation => 1 } ); |
| 357 |
my $userid = $librarian->userid; |
| 358 |
|
| 359 |
my $patron = $builder->build_object( |
330 |
my $patron = $builder->build_object( |
| 360 |
{ |
331 |
{ |
| 361 |
class => 'Koha::Patrons', |
332 |
class => 'Koha::Patrons', |
| 362 |
- |
|
|