Bug 23825: table name is not always displayed

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

(cherry picked from commit 0498ffb633)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
Jonathan Druart 2019-11-05 11:07:19 +01:00 committed by Victor Grousset/tuxayo
parent 56d98b914d
commit b292eaa80e
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ subtest 'store() tests' => sub {
$patron->lastseen('wrong_value')->store;
} catch {
ok( $_->isa('Koha::Exceptions::Object::BadValue'), 'Exception thrown correctly' );
like( $_->property, qr/borrowers\.lastseen/, 'Column should be the expected one' );
like( $_->property, qr/(borrowers\.)?lastseen/, 'Column should be the expected one' ); # The table name is not always displayed, it depends on the DBMS version
is( $_->value, 'wrong_value', 'Value should be the expected one' );
};