Bug 22454: (RM follow-up) Adjusts tests to avoid random failure
authorNick Clemens <nick@bywatersolutions.com>
Mon, 18 Mar 2019 11:17:31 +0000 (11:17 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 18 Mar 2019 11:17:31 +0000 (11:17 +0000)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

t/db_dependent/Koha/Item.t

index 62c648f..0c8281b 100644 (file)
@@ -44,7 +44,7 @@ subtest 'hidden_in_opac() tests' => sub {
 
     my $withdrawn = $item->withdrawn + 1; # make sure this attribute doesn't match
 
-    $rules = { withdrawn => $withdrawn, itype => [ $item->itype ] };
+    $rules = { withdrawn => [$withdrawn], itype => [ $item->itype ] };
 
     ok( $item->hidden_in_opac({ rules => $rules }), 'Rule matching itype passed, should hide' );