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

(-)a/t/db_dependent/api/v1/biblios.t (-2 / +1 lines)
Lines 193-199 subtest 'get_items() tests' => sub { Link Here
193
    my $item_1 = $builder->build_sample_item({ biblionumber => $biblio->biblionumber });
193
    my $item_1 = $builder->build_sample_item({ biblionumber => $biblio->biblionumber });
194
    my $item_2 = $builder->build_sample_item({ biblionumber => $biblio->biblionumber });
194
    my $item_2 = $builder->build_sample_item({ biblionumber => $biblio->biblionumber });
195
195
196
    $t->get_ok( "//$userid:$password@/api/v1/biblios/" . $biblio->biblionumber . "/items")
196
    $t->get_ok( "//$userid:$password@/api/v1/biblios/" . $biblio->biblionumber . "/items?_order_by=item_id" )
197
      ->status_is(200)
197
      ->status_is(200)
198
      ->json_is( '' => [ $item_1->to_api, $item_2->to_api ], 'The items are returned' );
198
      ->json_is( '' => [ $item_1->to_api, $item_2->to_api ], 'The items are returned' );
199
199
200
- 

Return to bug 33568