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

(-)a/t/db_dependent/ILSDI_Services.t (-2 / +12 lines)
Lines 299-305 subtest 'LookupPatron test' => sub { Link Here
299
299
300
subtest 'Holds test' => sub {
300
subtest 'Holds test' => sub {
301
301
302
    plan tests => 4;
302
    plan tests => 5;
303
303
304
    $schema->storage->txn_begin;
304
    $schema->storage->txn_begin;
305
305
Lines 350-355 subtest 'Holds test' => sub { Link Here
350
    $reply = C4::ILSDI::Services::HoldTitle( $query );
350
    $reply = C4::ILSDI::Services::HoldTitle( $query );
351
    is( $reply->{code}, 'itemAlreadyOnHold', "Item already on hold" );
351
    is( $reply->{code}, 'itemAlreadyOnHold', "Item already on hold" );
352
352
353
    my $biblio_with_no_item = $builder->build({
354
        source => 'Biblio',
355
    });
356
357
    $query = new CGI;
358
    $query->param( 'patron_id', $patron->{borrowernumber});
359
    $query->param( 'bib_id', $biblio_with_no_item->{biblionumber});
360
361
    $reply = C4::ILSDI::Services::HoldTitle( $query );
362
    is( $reply->{code}, 'NoItems', 'Biblio has no item' );
363
353
    my $biblio2 = $builder->build({
364
    my $biblio2 = $builder->build({
354
        source => 'Biblio',
365
        source => 'Biblio',
355
    });
366
    });
356
- 

Return to bug 21738