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>
(cherry picked from commit 169c535e88)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 57a58a79b4)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
This commit is contained in:
Tomas Cohen Arazi 2022-01-12 11:15:10 -03:00 committed by Arthur Suzuki
parent c494fc0bd0
commit a023870c83
1 changed files with 2 additions and 0 deletions

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');