Lines 164-170
subtest 'get() tests' => sub {
Link Here
|
164 |
|
164 |
|
165 |
subtest 'get_items() tests' => sub { |
165 |
subtest 'get_items() tests' => sub { |
166 |
|
166 |
|
167 |
plan tests => 8; |
167 |
plan tests => 11; |
168 |
|
168 |
|
169 |
$schema->storage->txn_begin; |
169 |
$schema->storage->txn_begin; |
170 |
|
170 |
|
Lines 196-201
subtest 'get_items() tests' => sub {
Link Here
|
196 |
->status_is(200) |
196 |
->status_is(200) |
197 |
->json_is( '' => [ $item_1->to_api, $item_2->to_api ], 'The items are returned' ); |
197 |
->json_is( '' => [ $item_1->to_api, $item_2->to_api ], 'The items are returned' ); |
198 |
|
198 |
|
|
|
199 |
$t->get_ok( |
200 |
"//$userid:$password@/api/v1/biblios/" . $biblio->biblionumber . "/items" => { "x-koha-embed" => "+strings" } ) |
201 |
->status_is(200) |
202 |
->json_has( '/0/_strings/home_library_id/str' => $item_1->holding_branch->branchname, '_strings are embedded' ); |
203 |
|
199 |
$schema->storage->txn_rollback; |
204 |
$schema->storage->txn_rollback; |
200 |
}; |
205 |
}; |
201 |
|
206 |
|
202 |
- |
|
|