Bug 11518 [QA Followup] - Make unit tests pass

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
This commit is contained in:
Kyle M Hall 2014-04-21 08:20:28 -04:00 committed by Mason James
parent e1c2dbcd02
commit 5dc1477beb
1 changed files with 2 additions and 2 deletions

View File

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