Bug 22454: (RM follow-up) Adjusts tests to avoid random failure

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Nick Clemens 2019-03-18 11:17:31 +00:00
parent 2d8a01172e
commit dccc6242ff
1 changed files with 1 additions and 1 deletions

View 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' );