Bug 23825: table name is not always displayed
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 5 Nov 2019 10:07:19 +0000 (11:07 +0100)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Mon, 22 Jun 2020 23:13:20 +0000 (01:13 +0200)
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 0498ffb6336cd5c3f5c580181c513bff968b8c58)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

t/db_dependent/Koha/Object.t

index cf725ce..760e384 100755 (executable)
@@ -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' );
         };