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:
parent
77f045e9a5
commit
9e168686cc
1 changed files with 12 additions and 4 deletions
|
@ -6138,8 +6138,10 @@ subtest 'Test CanBookBeIssued param ignore_reserves (Bug 35322)' => sub {
|
||||||
|
|
||||||
my $homebranch = $builder->build( { source => 'Branch' } );
|
my $homebranch = $builder->build( { source => 'Branch' } );
|
||||||
my $holdingbranch = $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_1 = $builder->build_object(
|
||||||
my $patron_2 = $builder->build_object( { class => 'Koha::Patrons', value => { categorycode => $patron_category->{categorycode} } } );
|
{ 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(
|
my $item = $builder->build_sample_item(
|
||||||
{
|
{
|
||||||
|
@ -6182,11 +6184,17 @@ subtest 'Test CanBookBeIssued param ignore_reserves (Bug 35322)' => sub {
|
||||||
set_userenv($holdingbranch);
|
set_userenv($holdingbranch);
|
||||||
|
|
||||||
my ( $error, $question, $alerts ) = CanBookBeIssued( $patron_2, $item->barcode, undef, undef, 0 );
|
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' );
|
is( exists $question->{RESERVE_WAITING}, 1, 'RESERVE_WAITING is set' );
|
||||||
|
|
||||||
( $error, $question, $alerts ) = CanBookBeIssued( $patron_2, $item->barcode, undef, undef, 1 );
|
( $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' );
|
isnt( exists $question->{RESERVE_WAITING}, 1, 'RESERVE_WAITING is not set' );
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue