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

(-)a/t/db_dependent/api/v1/checkouts.t (-4 / +3 lines)
Lines 321-327 subtest 'get_availability' => sub { Link Here
321
321
322
    # Needs confirm
322
    # Needs confirm
323
    %needsconfirmation = ( confirm1 => 1, confirm2 => 'please' );
323
    %needsconfirmation = ( confirm1 => 1, confirm2 => 'please' );
324
    my $token = Koha::Token->new->generate_jwt( { id => $librarian->id . ":" . $item1_id . ":confirm1:confirm2:please" });
324
    my $token = Koha::Token->new->generate_jwt( { id => $librarian->id . ":" . $item1_id . ":confirm1:confirm2" });
325
    $t->get_ok(
325
    $t->get_ok(
326
"//$userid:$password@/api/v1/checkouts/availability?item_id=$item1_id&patron_id=$patron_id"
326
"//$userid:$password@/api/v1/checkouts/availability?item_id=$item1_id&patron_id=$patron_id"
327
    )->status_is(200)->json_is( '/blockers' => {} )
327
    )->status_is(200)->json_is( '/blockers' => {} )
Lines 334-340 subtest 'get_availability' => sub { Link Here
334
            {
334
            {
335
                id => $librarian->id . ":"
335
                id => $librarian->id . ":"
336
                  . $item1_id
336
                  . $item1_id
337
                  . ":confirm1:confirm2:please",
337
                  . ":confirm1:confirm2",
338
                token => $confirmation_token
338
                token => $confirmation_token
339
            }
339
            }
340
        ),
340
        ),
Lines 415-421 subtest 'add checkout' => sub { Link Here
415
        {
415
        {
416
                id => $librarian->id . ":"
416
                id => $librarian->id . ":"
417
              . $item1_id
417
              . $item1_id
418
              . ":confirm1:confirm2:please"
418
              . ":confirm1:confirm2"
419
        }
419
        }
420
    );
420
    );
421
    $t->post_ok(
421
    $t->post_ok(
422
- 

Return to bug 34212