From 9e168686cc7de610275c51c161d02b3bc307a9bd Mon Sep 17 00:00:00 2001 From: Emily Lamancusa Date: Thu, 11 Jan 2024 15:43:49 -0500 Subject: [PATCH] Bug 35322: (QA follow-up) Perltidy Signed-off-by: Emily Lamancusa Signed-off-by: Katrin Fischer --- t/db_dependent/Circulation.t | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index f0c0e2ede9..5095afde73 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -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' ); }; -- 2.20.1