From e9cbd1a362461abfbf9467badb75a904df28a889 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 9 Jul 2024 13:26:06 +0000 Subject: [PATCH] Bug 37289: [DONT PUSH] Test only Apply this patch on top of the previous one. This patch is to prove the bug the previous patch is fixing. It proves that the order_by using the embedded field is working as intended. prove ./t/db_dependent/api/v1/authorised_values.t ---> Notice it fails --- t/db_dependent/api/v1/authorised_values.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/api/v1/authorised_values.t b/t/db_dependent/api/v1/authorised_values.t index 1a322112f4..244447331f 100755 --- a/t/db_dependent/api/v1/authorised_values.t +++ b/t/db_dependent/api/v1/authorised_values.t @@ -135,7 +135,7 @@ subtest 'list_av_from_category() tests' => sub { ); my $embedded_av_query = { "me.category_name" => [ $av_cat_2->category_name ] }; - $t->get_ok( "//$userid:$password@/api/v1/authorised_value_categories?_order_by=authorised_values.authorised_value&q=" + $t->get_ok( "//$userid:$password@/api/v1/authorised_value_categories?q=" . encode_json($embedded_av_query) => { 'x-koha-embed' => 'authorised_values' } )->status_is(200) ->json_is( [ -- 2.39.2