From dccc6242fffe8133e07927658327d4bb0d05dd48 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 18 Mar 2019 11:17:31 +0000 Subject: [PATCH] Bug 22454: (RM follow-up) Adjusts tests to avoid random failure Signed-off-by: Nick Clemens --- t/db_dependent/Koha/Item.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/Item.t b/t/db_dependent/Koha/Item.t index 62c648ff5b..0c8281b49d 100644 --- a/t/db_dependent/Koha/Item.t +++ b/t/db_dependent/Koha/Item.t @@ -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' ); -- 2.20.1