projects
/
koha-equinox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2d8a011
)
Bug 22454: (RM follow-up) Adjusts tests to avoid random failure
author
Nick Clemens
<nick@bywatersolutions.com>
Mon, 18 Mar 2019 11:17:31 +0000 (11:17 +0000)
committer
Nick 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
patch
|
blob
|
history
diff --git
a/t/db_dependent/Koha/Item.t
b/t/db_dependent/Koha/Item.t
index
62c648f
..
0c8281b
100644
(file)
--- 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' );