Lines 399-405
subtest checkin_withdrawn => sub {
Link Here
|
399 |
}; |
399 |
}; |
400 |
|
400 |
|
401 |
subtest item_circulation_status => sub { |
401 |
subtest item_circulation_status => sub { |
402 |
plan tests => 2; |
402 |
plan tests => 3; |
403 |
|
403 |
|
404 |
my $library = $builder->build_object( { class => 'Koha::Libraries' } ); |
404 |
my $library = $builder->build_object( { class => 'Koha::Libraries' } ); |
405 |
my $library2 = $builder->build_object( { class => 'Koha::Libraries' } ); |
405 |
my $library2 = $builder->build_object( { class => 'Koha::Libraries' } ); |
Lines 436-440
subtest item_circulation_status => sub {
Link Here
|
436 |
$sip_item = C4::SIP::ILS::Item->new( $item->barcode ); |
436 |
$sip_item = C4::SIP::ILS::Item->new( $item->barcode ); |
437 |
$status = $sip_item->sip_circulation_status; |
437 |
$status = $sip_item->sip_circulation_status; |
438 |
is( $status, '10', "Item circulation status is in transit" ); |
438 |
is( $status, '10', "Item circulation status is in transit" ); |
|
|
439 |
|
440 |
$transfer->delete; |
441 |
|
442 |
my $claim = Koha::Checkouts::ReturnClaim->new({ |
443 |
itemnumber => $item->id, |
444 |
borrowernumber => $patron->id, |
445 |
created_by => $patron->id, |
446 |
})->store(); |
447 |
|
448 |
$sip_item = C4::SIP::ILS::Item->new( $item->barcode ); |
449 |
$status = $sip_item->sip_circulation_status; |
450 |
is( $status, '11', "Item circulation status is claimed returned" ); |
451 |
|
452 |
$claim->delete; |
439 |
}; |
453 |
}; |
440 |
$schema->storage->txn_rollback; |
454 |
$schema->storage->txn_rollback; |
441 |
- |
|
|