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

(-)a/t/db_dependent/api/v1/illrequests.t (-3 / +4 lines)
Lines 40-46 my $t = Test::Mojo->new('Koha::REST::V1'); Link Here
40
40
41
subtest 'list() tests' => sub {
41
subtest 'list() tests' => sub {
42
42
43
    plan tests => 18;
43
    plan tests => 20;
44
44
45
    # Mock ILLBackend (as object)
45
    # Mock ILLBackend (as object)
46
    my $backend = Test::MockObject->new;
46
    my $backend = Test::MockObject->new;
Lines 114-122 subtest 'list() tests' => sub { Link Here
114
    $tx->req->env( { REMOTE_ADDR => $remote_address } );
114
    $tx->req->env( { REMOTE_ADDR => $remote_address } );
115
    $t->request_ok($tx)->status_is(200)
115
    $t->request_ok($tx)->status_is(200)
116
        ->json_has( '/0/patron', 'patron embedded' )
116
        ->json_has( '/0/patron', 'patron embedded' )
117
        ->json_is( '/0/patron/patron_id', $patron->borrowernumber, 'The right patron is embeded')
117
        ->json_has( '/0/capabilities', 'capabilities embedded' )
118
        ->json_has( '/0/capabilities', 'capabilities embedded' )
118
        ->json_has( '/0/library', 'library embedded'  )
119
        ->json_has( '/0/library', 'library embedded'  )
119
        ->json_has( '/0/metadata', 'metadata embedded'  );
120
        ->json_has( '/0/metadata', 'metadata embedded'  )
121
        ->json_hasnt( '/1', 'Only one request was created' );
120
122
121
    # Create another ILL request
123
    # Create another ILL request
122
    my $illrequest2 = $builder->build_object(
124
    my $illrequest2 = $builder->build_object(
123
- 

Return to bug 21063