Lines 62-68
subtest 'metadata() tests' => sub {
Link Here
|
62 |
|
62 |
|
63 |
subtest 'hidden_in_opac() tests' => sub { |
63 |
subtest 'hidden_in_opac() tests' => sub { |
64 |
|
64 |
|
65 |
plan tests => 3; |
65 |
plan tests => 4; |
66 |
|
66 |
|
67 |
$schema->storage->txn_begin; |
67 |
$schema->storage->txn_begin; |
68 |
|
68 |
|
Lines 85-90
subtest 'hidden_in_opac() tests' => sub {
Link Here
|
85 |
|
85 |
|
86 |
ok( $biblio->hidden_in_opac({ rules => { withdrawn => [ 2 ] } }), 'Biblio hidden' ); |
86 |
ok( $biblio->hidden_in_opac({ rules => { withdrawn => [ 2 ] } }), 'Biblio hidden' ); |
87 |
|
87 |
|
|
|
88 |
my $biblio_without_items = $builder->build_sample_biblio(); |
89 |
ok( !$biblio->hidden_in_opac({ rules => { withdrawn => [ 2 ] } }), 'Biblio without items is not hidden' ); |
90 |
|
88 |
$schema->storage->txn_rollback; |
91 |
$schema->storage->txn_rollback; |
89 |
}; |
92 |
}; |
90 |
|
93 |
|
91 |
- |
|
|