|
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 |
- |
|
|