Bug 27992: (QA follow-up) Perltidy

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Katrin Fischer 2023-11-05 12:07:25 +00:00 committed by Tomas Cohen Arazi
parent f7e2894156
commit 7e0cd0e211
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 9 additions and 9 deletions

View file

@ -827,9 +827,9 @@ sub CanBookBeIssued {
}
);
my $block_lost_return = C4::Context->preference("BlockReturnOfLostItems") ? 1 : 0;
my ( $stats_return, $stats_messages, $stats_iteminformation, $stats_borrower) =
AddReturn( $item_object->barcode, C4::Context->userenv->{'branch'} );
ModDateLastSeen( $item_object->itemnumber, $block_lost_return ); # FIXME Move to Koha::Item
my ( $stats_return, $stats_messages, $stats_iteminformation, $stats_borrower ) =
AddReturn( $item_object->barcode, C4::Context->userenv->{'branch'} );
ModDateLastSeen( $item_object->itemnumber, $block_lost_return ); # FIXME Move to Koha::Item
return (
{
STATS => 1,

View file

@ -2474,17 +2474,17 @@ subtest 'CanBookBeIssued + Statistic patrons "X"' => sub {
is( $stat->categorycode, $patron->categorycode, 'Recorded a categorycode' );
is( $stat->location, $item_1->location, 'Recorded a location' );
t::lib::Mocks::mock_userenv({ branchcode => $library->branchcode });
my $patron_2 = $builder->build_object( { class => 'Koha::Patrons', value => { categorycode => $patron_category->{categorycode} } } );
t::lib::Mocks::mock_userenv( { branchcode => $library->branchcode } );
my $patron_2 = $builder->build_object(
{ class => 'Koha::Patrons', value => { categorycode => $patron_category->{categorycode} } } );
my $item_2 = $builder->build_sample_item( { library => $library->branchcode } );
my $issue = AddIssue( $patron_2, $item_2->barcode );
my $issue = AddIssue( $patron_2, $item_2->barcode );
$item_2->discard_changes;
ok($item_2->onloan, "Item is checked out");
ok( $item_2->onloan, "Item is checked out" );
( $error, $question, $alerts ) = CanBookBeIssued( $patron, $item_2->barcode );
$item_2->discard_changes;
ok(!$item_2->onloan, "Checked out item is returned");
ok( !$item_2->onloan, "Checked out item is returned" );
# TODO There are other tests to provide here
};