Bug 29860: Remove item type-related warnings

To test:
1. Run:
   $ kshell
  k$ prove t/db_dependent/selenium/regressions.t
=> FAIL: You see several
item-level_itypes set but no itemtype set for item (985) at /kohadevbox/koha/Koha/Schema/Result/Item.pm line 905.
2. Apply this patch
3. Repeat 1
=> SUCCESS: No more item type warnings
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomás Cohen Arazi 2022-01-12 11:15:10 -03:00
parent d1f67e4287
commit 169c535e88
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -160,10 +160,12 @@ subtest 'Display circulation table correctly' => sub {
);
my ( $biblionumber, $biblioitemnumber ) = add_biblio();
my $item_type = $builder->build_object({ class => 'Koha::ItemTypes' });
my $item = $builder->build_sample_item(
{
biblionumber => $biblionumber,
library => $library->branchcode,
itype => $item_type->itemtype,
}
);
my $context = Test::MockModule->new('C4::Context');