Lines 196-202
subtest 'Log borrower cardnumbers and item barcodes which are not valid' => sub
Link Here
|
196 |
Koha::Statistics->log_invalid_patron( { patron => 'InvalidCardnumber' } ); |
196 |
Koha::Statistics->log_invalid_patron( { patron => 'InvalidCardnumber' } ); |
197 |
my $stat = Koha::Statistics->search()->next(); |
197 |
my $stat = Koha::Statistics->search()->next(); |
198 |
is( $stat->type, 'invalid_patron', 'Type set to invalid_patron' ); |
198 |
is( $stat->type, 'invalid_patron', 'Type set to invalid_patron' ); |
199 |
is( $stat->borrowernumber, '-1', 'Associated library id set correctly' ); |
199 |
is( $stat->borrowernumber, '-1', 'Associated patron id set correctly' ); |
200 |
is( $stat->other, 'InvalidCardnumber', 'Invalid cardnumber is set correctly' ); |
200 |
is( $stat->other, 'InvalidCardnumber', 'Invalid cardnumber is set correctly' ); |
201 |
is( $stat->branch, $branchcode, 'Branchcode is set correctly' ); |
201 |
is( $stat->branch, $branchcode, 'Branchcode is set correctly' ); |
202 |
|
202 |
|
Lines 210-216
subtest 'Log borrower cardnumbers and item barcodes which are not valid' => sub
Link Here
|
210 |
Koha::Statistics->log_invalid_item( { item => 'InvalidBarcode' } ); |
210 |
Koha::Statistics->log_invalid_item( { item => 'InvalidBarcode' } ); |
211 |
$stat = Koha::Statistics->search()->next(); |
211 |
$stat = Koha::Statistics->search()->next(); |
212 |
is( $stat->type, 'invalid_item', 'Type set to invalid_item' ); |
212 |
is( $stat->type, 'invalid_item', 'Type set to invalid_item' ); |
213 |
is( $stat->borrowernumber, '-1', 'Associated library id set correctly' ); |
213 |
is( $stat->borrowernumber, '-1', 'Associated patron id set correctly' ); |
214 |
is( $stat->other, 'InvalidBarcode', 'Invalid barcode is set correctly' ); |
214 |
is( $stat->other, 'InvalidBarcode', 'Invalid barcode is set correctly' ); |
215 |
is( $stat->branch, $branchcode, 'Branchcode is set correctly' ); |
215 |
is( $stat->branch, $branchcode, 'Branchcode is set correctly' ); |
216 |
|
216 |
|
217 |
- |
|
|