From 3740b2684cb1837bedec99ab43eaa1eff29e13e0 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sun, 9 Nov 2014 22:54:28 +0100 Subject: [PATCH] Bug 12264: Correct tiny typo in t/db_dependent/Items.t One of the tests claims 'item-level_itypes is disabled' when it should be 'item-level_itypes is enabled'. Patch fixes this. To test: - run t/db_dependent/Items.t - tests should all pass - verify the last test reads 'enabled' - look at the code and see it's true Signed-off-by: Chris Cormack Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/Items.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Items.t b/t/db_dependent/Items.t index 4bed48b9a9..6d8b47f558 100755 --- a/t/db_dependent/Items.t +++ b/t/db_dependent/Items.t @@ -221,7 +221,7 @@ subtest q{Test Koha::Database->schema()->resultset('Item')->itemtype()} => sub { 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 ); - ok( $item->effective_itemtype() eq 'ITEM_LEVEL', '$item->itemtype() returns items.itype when item-level_itypes is disabled' ); + ok( $item->effective_itemtype() eq 'ITEM_LEVEL', '$item->itemtype() returns items.itype when item-level_itypes is enabled' ); $dbh->rollback; }; -- 2.39.5