Bugzilla – Attachment 91119 Details for
Bug 23225
OPAC ISBD view returns 404 when no item attached
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23225: Add a test
Bug-23225-Add-a-test.patch (text/plain), 1.07 KB, created by
Tomás Cohen Arazi (tcohen)
on 2019-06-28 19:09:27 UTC
(
hide
)
Description:
Bug 23225: Add a test
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2019-06-28 19:09:27 UTC
Size:
1.07 KB
patch
obsolete
>From 4f6d6823b3f097a290a763f2ba897d6d860c15c7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 28 Jun 2019 14:00:53 -0500 >Subject: [PATCH] Bug 23225: Add a test > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/Koha/Biblio.t | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Biblio.t b/t/db_dependent/Koha/Biblio.t >index f123a314a6..7f04ca1e83 100644 >--- a/t/db_dependent/Koha/Biblio.t >+++ b/t/db_dependent/Koha/Biblio.t >@@ -62,11 +62,14 @@ subtest 'metadata() tests' => sub { > > subtest 'hidden_in_opac() tests' => sub { > >- plan tests => 3; >+ plan tests => 4; > > $schema->storage->txn_begin; > > my $biblio = $builder->build_sample_biblio(); >+ >+ ok( !$biblio->hidden_in_opac({ rules => { withdrawn => [ 2 ] } }), 'Biblio not hidden if there is no item attached' ); >+ > my $item_1 = $builder->build_sample_item({ biblionumber => $biblio->biblionumber }); > my $item_2 = $builder->build_sample_item({ biblionumber => $biblio->biblionumber }); > >-- >2.22.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23225
:
91047
|
91116
|
91117
|
91118
| 91119 |
91120