From 6a7f86f6347f8b4860e98f83f86fc0c088ea2916 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 19 Jul 2024 13:23:10 -0400 Subject: [PATCH] Bug 36169: (QA follow-up) Tidy tests Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer --- t/db_dependent/Koha/Patrons.t | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/t/db_dependent/Koha/Patrons.t b/t/db_dependent/Koha/Patrons.t index 4bcaac32a1..954b220a39 100755 --- a/t/db_dependent/Koha/Patrons.t +++ b/t/db_dependent/Koha/Patrons.t @@ -1510,27 +1510,27 @@ subtest 'is_child | is_adult' => sub { ); $category = $builder->build_object( { - class => 'Koha::Patron::Categories', - value => { category_type => 'S' } + class => 'Koha::Patron::Categories', + value => { category_type => 'S' } } ); my $patron_staff = $builder->build_object( { - class => 'Koha::Patrons', - value => { categorycode => $category->categorycode } + class => 'Koha::Patrons', + value => { categorycode => $category->categorycode } } ); - is( $patron_adult->is_adult, 1, 'Patron from category A should be considered adult' ); + is( $patron_adult->is_adult, 1, 'Patron from category A should be considered adult' ); is( $patron_adult_i->is_adult, 1, 'Patron from category I should be considered adult' ); - is( $patron_child->is_adult, 0, 'Patron from category C should not be considered adult' ); - is( $patron_other->is_adult, 0, 'Patron from category O should not be considered adult' ); - is( $patron_staff->is_adult, 1, 'Patron from category S should be considered adult' ); + is( $patron_child->is_adult, 0, 'Patron from category C should not be considered adult' ); + is( $patron_other->is_adult, 0, 'Patron from category O should not be considered adult' ); + is( $patron_staff->is_adult, 1, 'Patron from category S should be considered adult' ); - is( $patron_adult->is_child, 0, 'Patron from category A should be considered child' ); + is( $patron_adult->is_child, 0, 'Patron from category A should be considered child' ); is( $patron_adult_i->is_child, 0, 'Patron from category I should be considered child' ); - is( $patron_child->is_child, 1, 'Patron from category C should not be considered child' ); - is( $patron_other->is_child, 0, 'Patron from category O should not be considered child' ); - is( $patron_staff->is_child, 0, 'Patron from category S should not be considered child' ); + is( $patron_child->is_child, 1, 'Patron from category C should not be considered child' ); + is( $patron_other->is_child, 0, 'Patron from category O should not be considered child' ); + is( $patron_staff->is_child, 0, 'Patron from category S should not be considered child' ); # Clean up $patron_adult->delete; -- 2.39.5