Bugzilla – Attachment 153092 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.17 KB, created by
Jonathan Druart
on 2023-07-06 12:10:13 UTC
(
hide
)
Description:
Bug 34211: Add tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-07-06 12:10:13 UTC
Size:
1.17 KB
patch
obsolete
>From 3fbd66cef20bef71313deb7e869a9ab2090f3de0 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 > >--- > 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 54f6fe52a53..53aeaaaa946 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.25.1
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