Lines 301-307
subtest 'overwrite() tests' => sub {
Link Here
|
301 |
. '/extended_attributes' => json => |
301 |
. '/extended_attributes' => json => |
302 |
[ { type => $unique_attr_type->code, value => $value_1 } ] ) |
302 |
[ { type => $unique_attr_type->code, value => $value_1 } ] ) |
303 |
->status_is(400) |
303 |
->status_is(400) |
304 |
->json_is( '/error' => 'Missing mandatory attribute of type "' . $mandatory_attr_type->code . '".' ); |
304 |
->json_is( '/error' => "Missing mandatory extended attribute (type=" . $mandatory_attr_type->code . ')' ); |
305 |
|
305 |
|
306 |
$patron->add_extended_attribute({ code => $repeatable_attr_type->code, attribute => 'repeatable_1' }); |
306 |
$patron->add_extended_attribute({ code => $repeatable_attr_type->code, attribute => 'repeatable_1' }); |
307 |
$patron->add_extended_attribute({ code => $repeatable_attr_type->code, attribute => 'repeatable_2' }); |
307 |
$patron->add_extended_attribute({ code => $repeatable_attr_type->code, attribute => 'repeatable_2' }); |
308 |
- |
|
|