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