Lines 53-59
subtest 'list() tests' => sub {
Link Here
|
53 |
my $hold_1 = $builder->build_object({ class => 'Koha::Holds', value => { borrowernumber => $patron->id } }); |
53 |
my $hold_1 = $builder->build_object({ class => 'Koha::Holds', value => { borrowernumber => $patron->id } }); |
54 |
my $hold_2 = $builder->build_object({ class => 'Koha::Holds', value => { borrowernumber => $patron->id } }); |
54 |
my $hold_2 = $builder->build_object({ class => 'Koha::Holds', value => { borrowernumber => $patron->id } }); |
55 |
|
55 |
|
56 |
$t->get_ok("//$userid:$password@/api/v1/patrons/" . $patron->id . '/holds') |
56 |
$t->get_ok("//$userid:$password@/api/v1/patrons/" . $patron->id . '/holds?_order_by=+me.hold_id') |
57 |
->status_is( 200, 'SWAGGER3.2.2' ) |
57 |
->status_is( 200, 'SWAGGER3.2.2' ) |
58 |
->json_is( '' => [ $hold_1->to_api, $hold_2->to_api ], 'Holds retrieved' ); |
58 |
->json_is( '' => [ $hold_1->to_api, $hold_2->to_api ], 'Holds retrieved' ); |
59 |
|
59 |
|
60 |
- |
|
|