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

(-)a/t/db_dependent/SIP/Transaction.t (-2 / +10 lines)
Lines 525-531 subtest checkin_withdrawn => sub { Link Here
525
};
525
};
526
526
527
subtest item_circulation_status => sub {
527
subtest item_circulation_status => sub {
528
    plan tests => 5;
528
    plan tests => 6;
529
529
530
    my $library  = $builder->build_object( { class => 'Koha::Libraries' } );
530
    my $library  = $builder->build_object( { class => 'Koha::Libraries' } );
531
    my $library2 = $builder->build_object( { class => 'Koha::Libraries' } );
531
    my $library2 = $builder->build_object( { class => 'Koha::Libraries' } );
Lines 583-591 subtest item_circulation_status => sub { Link Here
583
    is( $status, '12', "Item circulation status is lost" );
583
    is( $status, '12', "Item circulation status is lost" );
584
    $item->itemlost(0)->store();
584
    $item->itemlost(0)->store();
585
585
586
    my $location = $item->location;
586
    $item->location("CART")->store();
587
    $item->location("CART")->store();
587
    $sip_item = C4::SIP::ILS::Item->new( $item->barcode );
588
    $sip_item = C4::SIP::ILS::Item->new( $item->barcode );
588
    $status = $sip_item->sip_circulation_status;
589
    $status = $sip_item->sip_circulation_status;
589
    is( $status, '09', "Item circulation status is waiting to be re-shelved" );
590
    is( $status, '09', "Item circulation status is waiting to be re-shelved" );
591
    $item->location($location)->store();
592
593
    my $nfl = $item->notforloan;
594
    $item->notforloan(-1)->store();
595
    $sip_item = C4::SIP::ILS::Item->new( $item->barcode );
596
    $status = $sip_item->sip_circulation_status;
597
    is( $status, '02', "Item circulation status is on order" );
598
    $item->notforloan($nfl)->store();
590
};
599
};
591
$schema->storage->txn_rollback;
600
$schema->storage->txn_rollback;
592
- 

Return to bug 27907