|
Lines 161-167
subtest 'get() tests' => sub {
Link Here
|
| 161 |
$patron->set_password( { password => $password, skip_validation => 1 } ); |
161 |
$patron->set_password( { password => $password, skip_validation => 1 } ); |
| 162 |
my $unauth_userid = $patron->userid; |
162 |
my $unauth_userid = $patron->userid; |
| 163 |
|
163 |
|
| 164 |
$t->get_ok( "//$userid:$password@/api/v1/ill/batches/" . $batch->id )->status_is(200) |
164 |
$t->get_ok( "//$userid:$password@/api/v1/ill/batches/" |
|
|
165 |
. $batch->id => { 'x-koha-embed' => '+strings,requests+count,patron,branch' } )->status_is(200) |
| 165 |
->json_has( '/batch_id', 'Batch ID' )->json_has( '/name', 'Batch name' ) |
166 |
->json_has( '/batch_id', 'Batch ID' )->json_has( '/name', 'Batch name' ) |
| 166 |
->json_has( '/backend', 'Backend name' )->json_has( '/patron_id', 'Borrowernumber' ) |
167 |
->json_has( '/backend', 'Backend name' )->json_has( '/patron_id', 'Borrowernumber' ) |
| 167 |
->json_has( '/library_id', 'Branchcode' )->json_has( '/patron', 'patron embedded' ) |
168 |
->json_has( '/library_id', 'Branchcode' )->json_has( '/patron', 'patron embedded' ) |
| 168 |
- |
|
|