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 50-59 subtest 'store() tests' => sub { Link Here
50
            {
50
            {
51
                class => 'Koha::Patron::Attribute::Types',
51
                class => 'Koha::Patron::Attribute::Types',
52
                value => {
52
                value => {
53
                    mandatory     => 0,
53
                    mandatory  => 0,
54
                    repeatable    => 0,
54
                    repeatable => 0,
55
                    unique_id     => 0,
55
                    unique_id  => 0,
56
                    category_code => undef
57
                }
56
                }
58
            }
57
            }
59
        );
58
        );
(-)a/t/db_dependent/api/v1/patrons.t (-4 / +3 lines)
Lines 928-948 subtest 'update() tests' => sub { Link Here
928
            my $attr_type_repeatable = $builder->build_object(
928
            my $attr_type_repeatable = $builder->build_object(
929
                {
929
                {
930
                    class => 'Koha::Patron::Attribute::Types',
930
                    class => 'Koha::Patron::Attribute::Types',
931
                    value => { repeatable => 1, unique_id => 0, mandatory => 0, category_code => undef }
931
                    value => { repeatable => 1, unique_id => 0, mandatory => 0 }
932
                }
932
                }
933
            );
933
            );
934
934
935
            my $attr_type_unique = $builder->build_object(
935
            my $attr_type_unique = $builder->build_object(
936
                {
936
                {
937
                    class => 'Koha::Patron::Attribute::Types',
937
                    class => 'Koha::Patron::Attribute::Types',
938
                    value => { repeatable => 0, unique_id => 1, mandatory => 0, category_code => undef }
938
                    value => { repeatable => 0, unique_id => 1, mandatory => 0 }
939
                }
939
                }
940
            );
940
            );
941
941
942
            my $attr_type_mandatory = $builder->build_object(
942
            my $attr_type_mandatory = $builder->build_object(
943
                {
943
                {
944
                    class => 'Koha::Patron::Attribute::Types',
944
                    class => 'Koha::Patron::Attribute::Types',
945
                    value => { repeatable => 0, unique_id => 0, mandatory => 1, category_code => undef }
945
                    value => { repeatable => 0, unique_id => 0, mandatory => 1 }
946
                }
946
                }
947
            );
947
            );
948
948
949
- 

Return to bug 26573