Bug 35322: (QA follow-up) Perltidy

Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Emily Lamancusa 2024-01-11 15:43:49 -05:00 committed by Katrin Fischer
parent 77f045e9a5
commit 9e168686cc
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -6138,8 +6138,10 @@ subtest 'Test CanBookBeIssued param ignore_reserves (Bug 35322)' => sub {
my $homebranch = $builder->build( { source => 'Branch' } );
my $holdingbranch = $builder->build( { source => 'Branch' } );
my $patron_1 = $builder->build_object( { class => 'Koha::Patrons', value => { categorycode => $patron_category->{categorycode} } } );
my $patron_2 = $builder->build_object( { class => 'Koha::Patrons', value => { categorycode => $patron_category->{categorycode} } } );
my $patron_1 = $builder->build_object(
{ class => 'Koha::Patrons', value => { categorycode => $patron_category->{categorycode} } } );
my $patron_2 = $builder->build_object(
{ class => 'Koha::Patrons', value => { categorycode => $patron_category->{categorycode} } } );
my $item = $builder->build_sample_item(
{
@ -6182,11 +6184,17 @@ subtest 'Test CanBookBeIssued param ignore_reserves (Bug 35322)' => sub {
set_userenv($holdingbranch);
my ( $error, $question, $alerts ) = CanBookBeIssued( $patron_2, $item->barcode, undef, undef, 0 );
is( keys(%$error) + keys(%$alerts), 0, 'There should not be any errors or alerts (impossible)' . str($error, $question, $alerts) );
is(
keys(%$error) + keys(%$alerts), 0,
'There should not be any errors or alerts (impossible)' . str( $error, $question, $alerts )
);
is( exists $question->{RESERVE_WAITING}, 1, 'RESERVE_WAITING is set' );
( $error, $question, $alerts ) = CanBookBeIssued( $patron_2, $item->barcode, undef, undef, 1 );
is( keys(%$error) + keys(%$alerts), 0, 'There should not be any errors or alerts (impossible)' . str($error, $question, $alerts) );
is(
keys(%$error) + keys(%$alerts), 0,
'There should not be any errors or alerts (impossible)' . str( $error, $question, $alerts )
);
isnt( exists $question->{RESERVE_WAITING}, 1, 'RESERVE_WAITING is not set' );
};