From 290ff3ae4fba608fb069ad2c1d192fab8e9ab7c5 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 Content-Type: text/plain; charset=utf-8 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 --- t/db_dependent/Items.t | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/t/db_dependent/Items.t b/t/db_dependent/Items.t index 4bed48b..6d8b47f 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; }; -- 1.7.7.6