Browse Source

Bug 32713: (QA follow-up) Tests now require more complex structures

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23.05.x
Tomás Cohen Arazi 1 year ago
parent
commit
afdc1690e0
Signed by: tomascohen GPG Key ID: 0A272EA1B2F3C15F
  1. 4
      t/db_dependent/Koha/REST/Plugin/Objects.t

4
t/db_dependent/Koha/REST/Plugin/Objects.t

@ -38,7 +38,7 @@ plugin 'Koha::REST::Plugin::Pagination';
get '/cities' => sub { get '/cities' => sub {
my $c = shift; my $c = shift;
$c->validation->output($c->req->params->to_hash); $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); my $cities = $c->objects->search(Koha::Cities->new);
$c->render( status => 200, json => $cities ); $c->render( status => 200, json => $cities );
}; };
@ -55,7 +55,7 @@ get '/cities/rs' => sub {
get '/cities/:city_id' => sub { get '/cities/:city_id' => sub {
my $c = shift; my $c = shift;
my $id = $c->stash("city_id"); 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); my $city = $c->objects->find(Koha::Cities->new, $id);
$c->render( status => 200, json => $city ); $c->render( status => 200, json => $city );
}; };

Loading…
Cancel
Save