Bug 11518 [QA Followup] - Make unit tests pass
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
This commit is contained in:
parent
e1c2dbcd02
commit
5dc1477beb
|
|
@ -169,10 +169,10 @@ subtest q{Test Koha::Database->schema()->resultset('Item')->itemtype()} => sub {
|
|||
my $biblioitem = $biblio->biblioitem();
|
||||
my ( $item ) = $biblioitem->items();
|
||||
|
||||
C4::Context->set_preference( 'item-level_itypes', 0 );
|
||||
$schema->resultset('Systempreference')->update_or_create({ variable => 'item-level_itypes', value => 0 });
|
||||
ok( $item->effective_itemtype() eq 'BIB_LEVEL', '$item->itemtype() returns biblioitem.itemtype when item-level_itypes is disabled' );
|
||||
|
||||
C4::Context->set_preference( 'item-level_itypes', 1 );
|
||||
$schema->resultset('Systempreference')->update_or_create({ variable => 'item-level_itypes', value => 1 });
|
||||
ok( $item->effective_itemtype() eq 'ITEM_LEVEL', '$item->itemtype() returns items.itype when item-level_itypes is disabled' );
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue