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

(-)a/t/db_dependent/SIP/ILS.t (-9 / +10 lines)
Lines 318-325 subtest renew_all => sub { Link Here
318
subtest renew => sub {
318
subtest renew => sub {
319
    plan tests => 2;
319
    plan tests => 2;
320
320
321
    my $library = $builder->build_object ({ class => 'Koha::Libraries' });
321
    my $library = $builder->build_object( { class => 'Koha::Libraries' } );
322
    my $patron = $builder->build_object(
322
    my $patron  = $builder->build_object(
323
        {
323
        {
324
            class => 'Koha::Patrons',
324
            class => 'Koha::Patrons',
325
            value => {
325
            value => {
Lines 327-343 subtest renew => sub { Link Here
327
            }
327
            }
328
        }
328
        }
329
    );
329
    );
330
    t::lib::Mocks::mock_userenv({ branchcode => $library->branchcode });
330
    t::lib::Mocks::mock_userenv( { branchcode => $library->branchcode } );
331
331
332
    my $item = $builder->build_sample_item({
332
    my $item = $builder->build_sample_item(
333
        library => $library->branchcode,
333
        {
334
    });
334
            library => $library->branchcode,
335
        }
336
    );
335
337
336
    AddIssue( $patron->unblessed, $item->barcode, undef, 0 );
338
    AddIssue( $patron->unblessed, $item->barcode, undef, 0 );
337
    my $checkout = $item->checkout;
339
    my $checkout = $item->checkout;
338
    ok( defined($checkout), "Successfully checked out an item prior to renewal");
340
    ok( defined($checkout), "Successfully checked out an item prior to renewal" );
339
341
340
    my $ils = C4::SIP::ILS->new({ id => $library->branchcode });
342
    my $ils = C4::SIP::ILS->new( { id => $library->branchcode } );
341
343
342
    my $transaction = $ils->renew( $patron->cardnumber, "", $item->barcode );
344
    my $transaction = $ils->renew( $patron->cardnumber, "", $item->barcode );
343
345
344
- 

Return to bug 34258