Lines 410-416
subtest 'store() tests' => sub {
Link Here
|
410 |
$patron->lastseen('wrong_value')->store; |
410 |
$patron->lastseen('wrong_value')->store; |
411 |
} catch { |
411 |
} catch { |
412 |
ok( $_->isa('Koha::Exceptions::Object::BadValue'), 'Exception thrown correctly' ); |
412 |
ok( $_->isa('Koha::Exceptions::Object::BadValue'), 'Exception thrown correctly' ); |
413 |
like( $_->property, qr/borrowers\W?\.\W?lastseen/, 'Column should be the expected one' ); # optional \W for quote or backtic |
413 |
like( $_->property, qr/borrowers\.lastseen/, 'Column should be the expected one' ); |
414 |
is( $_->value, 'wrong_value', 'Value should be the expected one' ); |
414 |
is( $_->value, 'wrong_value', 'Value should be the expected one' ); |
415 |
}; |
415 |
}; |
416 |
|
416 |
|
417 |
- |
|
|