Lines 77-84
subtest 'new() tests' => sub {
Link Here
|
77 |
} |
77 |
} |
78 |
'Koha::Exceptions::Patron::Modification::DuplicateVerificationToken', |
78 |
'Koha::Exceptions::Patron::Modification::DuplicateVerificationToken', |
79 |
'Attempting to add a duplicate verification raises the correct exception'; |
79 |
'Attempting to add a duplicate verification raises the correct exception'; |
80 |
is( $@, |
80 |
like( "$@", |
81 |
'Duplicate verification token 1234567890', |
81 |
qr/Duplicate verification token 1234567890/, |
82 |
'Exception carries the right message' |
82 |
'Exception carries the right message' |
83 |
); |
83 |
); |
84 |
|
84 |
|
Lines 132-138
subtest 'store( extended_attributes ) tests' => sub {
Link Here
|
132 |
'Koha::Exceptions::Patron::Modification::InvalidData', |
132 |
'Koha::Exceptions::Patron::Modification::InvalidData', |
133 |
'Trying to store invalid JSON in extended_attributes field raises exception'; |
133 |
'Trying to store invalid JSON in extended_attributes field raises exception'; |
134 |
|
134 |
|
135 |
is( $@, 'The passed extended_attributes is not valid JSON' ); |
135 |
like( "$@", qr/The passed extended_attributes is not valid JSON/ ); |
136 |
|
136 |
|
137 |
$schema->storage->txn_rollback; |
137 |
$schema->storage->txn_rollback; |
138 |
}; |
138 |
}; |
139 |
- |
|
|