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