From afdc1690e01daef72e6e2304bcdf7dec18fe653c Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 17 Mar 2023 18:27:09 -0300 Subject: [PATCH] Bug 32713: (QA follow-up) Tests now require more complex structures Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/Koha/REST/Plugin/Objects.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Koha/REST/Plugin/Objects.t b/t/db_dependent/Koha/REST/Plugin/Objects.t index 478647a857..15076e1897 100755 --- a/t/db_dependent/Koha/REST/Plugin/Objects.t +++ b/t/db_dependent/Koha/REST/Plugin/Objects.t @@ -38,7 +38,7 @@ plugin 'Koha::REST::Plugin::Pagination'; get '/cities' => sub { my $c = shift; $c->validation->output($c->req->params->to_hash); - $c->stash_embed; + $c->stash_embed( { spec => { parameters => [ { name => 'x-koha-embed', items => { enum => ['+strings'] } } ] } } ); my $cities = $c->objects->search(Koha::Cities->new); $c->render( status => 200, json => $cities ); }; @@ -55,7 +55,7 @@ get '/cities/rs' => sub { get '/cities/:city_id' => sub { my $c = shift; my $id = $c->stash("city_id"); - $c->stash_embed; + $c->stash_embed( { spec => { parameters => [ { name => 'x-koha-embed', items => { enum => ['+strings'] } } ] } } ); my $city = $c->objects->find(Koha::Cities->new, $id); $c->render( status => 200, json => $city ); };