Bugzilla – Attachment 153405 Details for
Bug 34211
Add +strings for GET /api/v1/biblios/:biblio_id/items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34211: Add tests
Bug-34211-Add-tests.patch (text/plain), 1.22 KB, created by
Nick Clemens (kidclamp)
on 2023-07-13 15:42:22 UTC
(
hide
)
Description:
Bug 34211: Add tests
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2023-07-13 15:42:22 UTC
Size:
1.22 KB
patch
obsolete
>From 20e6d45981e4fac550b8b7a6851d57363f58effa Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 6 Jul 2023 14:08:13 +0200 >Subject: [PATCH] Bug 34211: Add tests > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > t/db_dependent/api/v1/biblios.t | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/api/v1/biblios.t b/t/db_dependent/api/v1/biblios.t >index 54f6fe52a5..53aeaaaa94 100755 >--- a/t/db_dependent/api/v1/biblios.t >+++ b/t/db_dependent/api/v1/biblios.t >@@ -164,7 +164,7 @@ subtest 'get() tests' => sub { > > subtest 'get_items() tests' => sub { > >- plan tests => 8; >+ plan tests => 11; > > $schema->storage->txn_begin; > >@@ -196,6 +196,11 @@ subtest 'get_items() tests' => sub { > ->status_is(200) > ->json_is( '' => [ $item_1->to_api, $item_2->to_api ], 'The items are returned' ); > >+ $t->get_ok( >+ "//$userid:$password@/api/v1/biblios/" . $biblio->biblionumber . "/items" => { "x-koha-embed" => "+strings" } ) >+ ->status_is(200) >+ ->json_has( '/0/_strings/home_library_id/str' => $item_1->holding_branch->branchname, '_strings are embedded' ); >+ > $schema->storage->txn_rollback; > }; > >-- >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 34211
:
153092
|
153093
|
153099
| 153405 |
153406