Bug 22454: (RM follow-up) Adjusts tests to avoid random failure
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
2d8a01172e
commit
dccc6242ff
|
|
@ -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' );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue