Bug 20144: [sql_modes] Fix search history tests
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 6 Feb 2018 17:45:08 +0000 (14:45 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 13 Feb 2018 16:59:00 +0000 (13:59 -0300)
Incorrect datetime value: '1374978877' for column 'time'

Need to investigate this: Why did I put that value in the test?
Does the feature correctly works?

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Search/History.t

index 92b3f4f..ee01734 100644 (file)
@@ -379,7 +379,7 @@ $session->flush;
 sub myMockedget_from_session {
     my $expected_recent_searches = [
         {
-            'time' => 1374978877,
+            'time' => dt_from_string,
             'query_cgi' => 'cgi_test',
             'total' => 2,
             'query_desc' => 'kw,wrdl: history, '