View | Details | Raw Unified | Return to bug 20212
Collapse All | Expand All

(-)a/t/db_dependent/api/v1/acquisitions_orders.t (-2 / +1 lines)
Lines 73-79 subtest 'list() tests' => sub { Link Here
73
    ## Authorized user tests
73
    ## Authorized user tests
74
    my $count_of_orders = Koha::Acquisition::Orders->search->count;
74
    my $count_of_orders = Koha::Acquisition::Orders->search->count;
75
    # Make sure we are returned with the correct amount of orders
75
    # Make sure we are returned with the correct amount of orders
76
    $t->get_ok( "//$userid:$password@/api/v1/acquisitions/orders" )
76
    $t->get_ok( "//$userid:$password@/api/v1/acquisitions/orders?_per_page=-1" )
77
      ->status_is( 200, 'SWAGGER3.2.2' )
77
      ->status_is( 200, 'SWAGGER3.2.2' )
78
      ->json_has('/'.($count_of_orders-1).'/order_id')
78
      ->json_has('/'.($count_of_orders-1).'/order_id')
79
      ->json_hasnt('/'.($count_of_orders).'/order_id');
79
      ->json_hasnt('/'.($count_of_orders).'/order_id');
80
- 

Return to bug 20212