Lines 124-132
subtest "AddReturn logging on statistics table (item-level_itypes=1)" => sub {
Link Here
|
124 |
warning_like { AddIssue( $borrower, $item_without_itemtype->{ barcode } ) } |
124 |
warning_like { AddIssue( $borrower, $item_without_itemtype->{ barcode } ) } |
125 |
qr/^item-level_itypes set but no itemtype set for item/, |
125 |
qr/^item-level_itypes set but no itemtype set for item/, |
126 |
'Item without itemtype set raises warning on AddIssue'; |
126 |
'Item without itemtype set raises warning on AddIssue'; |
127 |
warning_like { AddReturn( $item_without_itemtype->{ barcode }, $branch ) } |
127 |
warnings_like { AddReturn( $item_without_itemtype->{ barcode }, $branch ) } |
128 |
qr/^item-level_itypes set but no itemtype set for item/, |
128 |
[qr/^item-level_itypes set but no itemtype set for item/,qr/^item-level_itypes set but no itemtype set for item/], |
129 |
'Item without itemtype set raises warning on AddReturn'; |
129 |
'Item without itemtype set raises warnings on AddReturn'; |
130 |
# Test biblio-level itemtype was recorded on the 'statistics' table |
130 |
# Test biblio-level itemtype was recorded on the 'statistics' table |
131 |
$stat = $schema->resultset('Statistic')->search({ |
131 |
$stat = $schema->resultset('Statistic')->search({ |
132 |
branch => $branch, |
132 |
branch => $branch, |
Lines 246-250
subtest 'Handle ids duplication' => sub {
Link Here
|
246 |
my $old_checkout = Koha::Old::Checkouts->find( $checkout->issue_id ); |
246 |
my $old_checkout = Koha::Old::Checkouts->find( $checkout->issue_id ); |
247 |
isnt( $old_checkout->itemnumber, $item->{itemnumber}, 'If an item is checked-in, it should be moved to old_issues even if the issue_id already existed in the table' ); |
247 |
isnt( $old_checkout->itemnumber, $item->{itemnumber}, 'If an item is checked-in, it should be moved to old_issues even if the issue_id already existed in the table' ); |
248 |
}; |
248 |
}; |
|
|
249 |
$schema->storage->txn_rollback; |
249 |
|
250 |
|
250 |
1; |
251 |
1; |
251 |
- |
|
|