From 71d5e282863cf93fc1263467ebdcba3674d5192e Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 25 Apr 2024 13:54:03 +0100 Subject: [PATCH] Bug 35430: (follow-up) Remove 'me' from query in tests --- t/db_dependent/api/v1/stockrotation_rotas.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/api/v1/stockrotation_rotas.t b/t/db_dependent/api/v1/stockrotation_rotas.t index d6ca714bc9a..b56be396d0e 100755 --- a/t/db_dependent/api/v1/stockrotation_rotas.t +++ b/t/db_dependent/api/v1/stockrotation_rotas.t @@ -84,11 +84,11 @@ subtest 'list() tests' => sub { ); # Filtering works, two rotas are active - my $api_filter = encode_json( { 'me.active' => Mojo::JSON->true } ); + my $api_filter = encode_json( { 'active' => Mojo::JSON->true } ); $t->get_ok("//$userid:$password@/api/v1/rotas?q=$api_filter")->status_is(200) ->json_is( [ $active_rota->to_api, $another_active_rota->to_api ] ); - $api_filter = encode_json( { 'me.title' => $active_rota->title } ); + $api_filter = encode_json( { 'title' => $active_rota->title } ); $t->get_ok("//$userid:$password@/api/v1/rotas?q=$api_filter")->status_is(200)->json_is( [ $active_rota->to_api ] ); # Warn on unsupported query parameter -- 2.44.0