Bug 32343: Prevent Koha/Patron.t to fail randomly
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 25 Nov 2022 06:26:42 +0000 (07:26 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 25 Nov 2022 12:27:45 +0000 (09:27 -0300)
Highlighted by Bug 32030: fix test builder for boolean

The attribute is named "unique_id", not "unique"

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
t/db_dependent/Koha/Patron.t

index ae8a7ee..e92b054 100755 (executable)
@@ -552,14 +552,14 @@ subtest 'extended_attributes' => sub {
         my $attribute_type_1 = $builder->build_object(
             {
                 class => 'Koha::Patron::Attribute::Types',
-                value => { unique => 1 }
+                value => { unique_id => 1 }
             }
         );
 
         my $attribute_type_2 = $builder->build_object(
             {
                 class => 'Koha::Patron::Attribute::Types',
-                value => { unique => 0 }
+                value => { unique_id => 0 }
             }
         );