Lines 113-119
subtest 'list() tests' => sub {
Link Here
|
113 |
my $query = { "biblio.isbn" => { "-like" => "\%SOMETHING\%" } }; |
113 |
my $query = { "biblio.isbn" => { "-like" => "\%SOMETHING\%" } }; |
114 |
|
114 |
|
115 |
$t->get_ok( "//$userid:$password@/api/v1/acquisitions/orders?q=" . encode_json($query) => {'x-koha-embed' => 'biblio'} ) |
115 |
$t->get_ok( "//$userid:$password@/api/v1/acquisitions/orders?q=" . encode_json($query) => {'x-koha-embed' => 'biblio'} ) |
116 |
->status_is( 200, "Embeddig biblio.isbn doesn't make it explode" ) |
116 |
->status_is( 200, "Embedding biblio and searching on biblio.isbn doesn't make it explode" ) |
117 |
->json_has( "/0/biblio", "biblio object correctly embedded" ) |
117 |
->json_has( "/0/biblio", "biblio object correctly embedded" ) |
118 |
->json_is( "/0/biblio/isbn", 'SOMETHING', 'Filtering by a biblioitems column works!' ); |
118 |
->json_is( "/0/biblio/isbn", 'SOMETHING', 'Filtering by a biblioitems column works!' ); |
119 |
|
119 |
|
120 |
- |
|
|