Bug 12264: Correct tiny typo in t/db_dependent/Items.t
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Sun, 9 Nov 2014 21:54:28 +0000 (22:54 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 10 Nov 2014 15:00:22 +0000 (12:00 -0300)
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 <chris@bigballofwax.co.nz>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
t/db_dependent/Items.t

index 4bed48b..6d8b47f 100755 (executable)
@@ -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;
 };