From 3fbd66cef20bef71313deb7e869a9ab2090f3de0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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