View | Details | Raw Unified | Return to bug 26573
Collapse All | Expand All

(-)a/t/db_dependent/Koha/Patron.t (-5 / +6 lines)
Lines 1089-1116 subtest 'extended_attributes' => sub { Link Here
1089
        my $attribute_type_1 = $builder->build_object(
1089
        my $attribute_type_1 = $builder->build_object(
1090
            {
1090
            {
1091
                class => 'Koha::Patron::Attribute::Types',
1091
                class => 'Koha::Patron::Attribute::Types',
1092
                value => { mandatory => 1, class => 'a', category_code => undef }
1092
                value => { mandatory => 1, class => 'a' }
1093
            }
1093
            }
1094
        );
1094
        );
1095
1095
1096
        my $attribute_type_2 = $builder->build_object(
1096
        my $attribute_type_2 = $builder->build_object(
1097
            {
1097
            {
1098
                class => 'Koha::Patron::Attribute::Types',
1098
                class => 'Koha::Patron::Attribute::Types',
1099
                value => { mandatory => 0, class => 'a', category_code => undef }
1099
                value => { mandatory => 0, class => 'a' }
1100
            }
1100
            }
1101
        );
1101
        );
1102
1102
1103
        my $attribute_type_3 = $builder->build_object(
1103
        my $attribute_type_3 = $builder->build_object(
1104
            {
1104
            {
1105
                class => 'Koha::Patron::Attribute::Types',
1105
                class => 'Koha::Patron::Attribute::Types',
1106
                value => { mandatory => 1, class => 'a', category_code => undef, opac_editable => 1 }
1106
                value => { mandatory => 1, class => 'a', opac_editable => 1 }
1107
            }
1107
            }
1108
        );
1108
        );
1109
1109
1110
        my $attribute_type_4 = $builder->build_object(
1110
        my $attribute_type_4 = $builder->build_object(
1111
            {
1111
            {
1112
                class => 'Koha::Patron::Attribute::Types',
1112
                class => 'Koha::Patron::Attribute::Types',
1113
                value => { mandatory => 0, class => 'a', category_code => undef, opac_editable => 1 }
1113
                value => { mandatory => 0, class => 'a', opac_editable => 1 }
1114
            }
1114
            }
1115
        );
1115
        );
1116
1116
Lines 1176-1184 subtest 'extended_attributes' => sub { Link Here
1176
        my $attribute_type_1 = $builder->build_object(
1176
        my $attribute_type_1 = $builder->build_object(
1177
            {
1177
            {
1178
                class => 'Koha::Patron::Attribute::Types',
1178
                class => 'Koha::Patron::Attribute::Types',
1179
                value => { mandatory => 1, class => 'a', category_code => $patron->categorycode }
1179
                value => { mandatory => 1, class => 'a' }
1180
            }
1180
            }
1181
        );
1181
        );
1182
        $attribute_type_1->categories( [ $patron->category ] );
1182
1183
1183
        $patron->extended_attributes( [ { code => $attribute_type_1->code, attribute => 'a' } ] );
1184
        $patron->extended_attributes( [ { code => $attribute_type_1->code, attribute => 'a' } ] );
1184
1185
(-)a/t/db_dependent/Koha/Patron/Attribute.t (-4 / +3 lines)
Lines 54-63 subtest 'store() tests' => sub { Link Here
54
            {
54
            {
55
                class => 'Koha::Patron::Attribute::Types',
55
                class => 'Koha::Patron::Attribute::Types',
56
                value => {
56
                value => {
57
                    mandatory     => 0,
57
                    mandatory  => 0,
58
                    repeatable    => 0,
58
                    repeatable => 0,
59
                    unique_id     => 0,
59
                    unique_id  => 0,
60
                    category_code => undef
61
                }
60
                }
62
            }
61
            }
63
        );
62
        );
(-)a/t/db_dependent/api/v1/patrons.t (-4 / +3 lines)
Lines 929-949 subtest 'update() tests' => sub { Link Here
929
            my $attr_type_repeatable = $builder->build_object(
929
            my $attr_type_repeatable = $builder->build_object(
930
                {
930
                {
931
                    class => 'Koha::Patron::Attribute::Types',
931
                    class => 'Koha::Patron::Attribute::Types',
932
                    value => { repeatable => 1, unique_id => 0, mandatory => 0, category_code => undef }
932
                    value => { repeatable => 1, unique_id => 0, mandatory => 0 }
933
                }
933
                }
934
            );
934
            );
935
935
936
            my $attr_type_unique = $builder->build_object(
936
            my $attr_type_unique = $builder->build_object(
937
                {
937
                {
938
                    class => 'Koha::Patron::Attribute::Types',
938
                    class => 'Koha::Patron::Attribute::Types',
939
                    value => { repeatable => 0, unique_id => 1, mandatory => 0, category_code => undef }
939
                    value => { repeatable => 0, unique_id => 1, mandatory => 0 }
940
                }
940
                }
941
            );
941
            );
942
942
943
            my $attr_type_mandatory = $builder->build_object(
943
            my $attr_type_mandatory = $builder->build_object(
944
                {
944
                {
945
                    class => 'Koha::Patron::Attribute::Types',
945
                    class => 'Koha::Patron::Attribute::Types',
946
                    value => { repeatable => 0, unique_id => 0, mandatory => 1, category_code => undef }
946
                    value => { repeatable => 0, unique_id => 0, mandatory => 1 }
947
                }
947
                }
948
            );
948
            );
949
949
950
- 

Return to bug 26573