From d08e479de30ad0832479edcb580c22a37fee32f2 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 8 Jan 2021 10:33:26 -0300 Subject: [PATCH] Bug 20212: (follow-up) Avoid pagination on full resultset test Signed-off-by: Tomas Cohen Arazi Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Martin Renvoize --- t/db_dependent/api/v1/acquisitions_orders.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/api/v1/acquisitions_orders.t b/t/db_dependent/api/v1/acquisitions_orders.t index 8298d9795c..9c806a53cc 100755 --- a/t/db_dependent/api/v1/acquisitions_orders.t +++ b/t/db_dependent/api/v1/acquisitions_orders.t @@ -73,7 +73,7 @@ subtest 'list() tests' => sub { ## Authorized user tests my $count_of_orders = Koha::Acquisition::Orders->search->count; # Make sure we are returned with the correct amount of orders - $t->get_ok( "//$userid:$password@/api/v1/acquisitions/orders" ) + $t->get_ok( "//$userid:$password@/api/v1/acquisitions/orders?_per_page=-1" ) ->status_is( 200, 'SWAGGER3.2.2' ) ->json_has('/'.($count_of_orders-1).'/order_id') ->json_hasnt('/'.($count_of_orders).'/order_id'); -- 2.20.1