From abb5a259272869ccdf6c391dfb8438fc64425d97 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Tue, 5 Nov 2019 11:07:19 +0100
Subject: [PATCH] Bug 23825: table name is not always displayed
Content-Type: text/plain; charset=utf-8
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
---
t/db_dependent/Koha/Object.t | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/db_dependent/Koha/Object.t b/t/db_dependent/Koha/Object.t
index af723528c6..a37695bc1f 100755
--- a/t/db_dependent/Koha/Object.t
+++ b/t/db_dependent/Koha/Object.t
@@ -410,7 +410,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' );
};
--
2.11.0