Bugzilla – Attachment 156078 Details for
Bug 34054
Allow to embed biblio on GET /items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34054: Add tests
Bug-34054-Add-tests.patch (text/plain), 1.29 KB, created by
Marcel de Rooy
on 2023-09-22 12:07:32 UTC
(
hide
)
Description:
Bug 34054: Add tests
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-09-22 12:07:32 UTC
Size:
1.29 KB
patch
obsolete
>From 4a4650d95f75f0ff0fb8520156e4622c65035bd4 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 19 Jun 2023 09:49:08 +0200 >Subject: [PATCH] Bug 34054: Add tests >Content-Type: text/plain; charset=utf-8 > >Sponsored-by: BULAC - http://www.bulac.fr/ >Signed-off-by: Andreas Roussos <a.roussos@dataly.gr> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > t/db_dependent/api/v1/items.t | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/api/v1/items.t b/t/db_dependent/api/v1/items.t >index a4a6300652..6a22356254 100755 >--- a/t/db_dependent/api/v1/items.t >+++ b/t/db_dependent/api/v1/items.t >@@ -42,7 +42,7 @@ my $t = Test::Mojo->new('Koha::REST::V1'); > > subtest 'list() tests' => sub { > >- plan tests => 12; >+ plan tests => 15; > > $schema->storage->txn_begin; > >@@ -91,6 +91,11 @@ subtest 'list() tests' => sub { > ->status_is(200) > ->json_is( '' => [ $item->to_api ], 'SWAGGER3.3.2'); > >+ $t->get_ok( "//$userid:$password@/api/v1/items?external_id=" . $item->barcode => {'x-koha-embed' => 'biblio'} ) >+ ->status_is(200) >+ ->json_is( '' => [ { %{$item->to_api}, biblio => $item->biblio->to_api } ], 'SWAGGER3.3.2'); >+ >+ > my $barcode = $item->barcode; > $item->delete; > >-- >2.30.2
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 34054
:
152466
|
152467
|
153819
|
153820
| 156078 |
156079