Lines 1042-1048
subtest 'patron_attributes' => sub {
Link Here
|
1042 |
is( $result->{overwritten}, 0 ); |
1042 |
is( $result->{overwritten}, 0 ); |
1043 |
my $error = $result->{errors}->[0]; |
1043 |
my $error = $result->{errors}->[0]; |
1044 |
is( $error->{patron_attribute_unique_id_constraint}, 1 ); |
1044 |
is( $error->{patron_attribute_unique_id_constraint}, 1 ); |
1045 |
is( $error->{patron_id}, $cardnumber ); |
1045 |
is( $error->{borrowernumber}, $patron->borrowernumber ); |
1046 |
is( $error->{attribute}->code, $unique_attribute_type->code ); |
1046 |
is( $error->{attribute}->code, $unique_attribute_type->code ); |
1047 |
|
1047 |
|
1048 |
compare_patron_attributes($patron->extended_attributes->unblessed, {}, ); |
1048 |
compare_patron_attributes($patron->extended_attributes->unblessed, {}, ); |
Lines 1067-1073
subtest 'patron_attributes' => sub {
Link Here
|
1067 |
|
1067 |
|
1068 |
$error = $result->{errors}->[0]; |
1068 |
$error = $result->{errors}->[0]; |
1069 |
is( $error->{patron_attribute_invalid_type}, 1 ); |
1069 |
is( $error->{patron_attribute_invalid_type}, 1 ); |
1070 |
is( $error->{patron_id}, $cardnumber ); |
1070 |
is( $error->{borrowernumber}, $patron->borrowernumber ); |
1071 |
is( $error->{attribute_type_code}, $non_existent_attribute_type_code ); |
1071 |
is( $error->{attribute_type_code}, $non_existent_attribute_type_code ); |
1072 |
|
1072 |
|
1073 |
# NonRepeatable |
1073 |
# NonRepeatable |
Lines 1088-1094
subtest 'patron_attributes' => sub {
Link Here
|
1088 |
|
1088 |
|
1089 |
$error = $result->{errors}->[0]; |
1089 |
$error = $result->{errors}->[0]; |
1090 |
is( $error->{patron_attribute_non_repeatable}, 1 ); |
1090 |
is( $error->{patron_attribute_non_repeatable}, 1 ); |
1091 |
is( $error->{patron_id}, $cardnumber ); |
1091 |
is( $error->{borrowernumber}, $patron->borrowernumber ); |
1092 |
is( $error->{attribute}->code, $normal_attribute_type->code ); |
1092 |
is( $error->{attribute}->code, $normal_attribute_type->code ); |
1093 |
|
1093 |
|
1094 |
# Don't preserve existing attributes |
1094 |
# Don't preserve existing attributes |
1095 |
- |
|
|