Lines 276-282
subtest q{Test Koha::Database->schema()->resultset('Item')->itemtype()} => sub {
Link Here
|
276 |
$item->update(); |
276 |
$item->update(); |
277 |
my $effective_itemtype; |
277 |
my $effective_itemtype; |
278 |
warning_is { $effective_itemtype = $item->effective_itemtype() } |
278 |
warning_is { $effective_itemtype = $item->effective_itemtype() } |
279 |
"item-level_itypes set but no itemtype set for item ($item->itemnumber)", |
279 |
"item-level_itypes set but no itemtype set for item (".$item->itemnumber.")", |
280 |
'->effective_itemtype() raises a warning when falling back to bib-level'; |
280 |
'->effective_itemtype() raises a warning when falling back to bib-level'; |
281 |
|
281 |
|
282 |
ok( defined $effective_itemtype && |
282 |
ok( defined $effective_itemtype && |
283 |
- |
|
|