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

(-)a/t/db_dependent/SIP/Transaction.t (-2 / +8 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 => 6;
528
    plan tests => 7;
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 596-600 subtest item_circulation_status => sub { Link Here
596
    $status = $sip_item->sip_circulation_status;
596
    $status = $sip_item->sip_circulation_status;
597
    is( $status, '02', "Item circulation status is on order" );
597
    is( $status, '02', "Item circulation status is on order" );
598
    $item->notforloan($nfl)->store();
598
    $item->notforloan($nfl)->store();
599
600
    my $damaged = $item->damaged;
601
    $item->damaged(1)->store();
602
    $sip_item = C4::SIP::ILS::Item->new( $item->barcode );
603
    $status = $sip_item->sip_circulation_status;
604
    is( $status, '01', "Item circulation status is damaged" );
605
    $item->damaged(0)->store();
599
};
606
};
600
$schema->storage->txn_rollback;
607
$schema->storage->txn_rollback;
601
- 

Return to bug 27908