diff --git a/module/VuFind/src/VuFindTest/Unit/DbTestCase.php b/module/VuFind/src/VuFindTest/Unit/DbTestCase.php
index 960babca78b32eaf11a1cce73ca57db18d9f6111..3e4447f13ffe1e66dbb3fe7ed79652a866afc810 100644
--- a/module/VuFind/src/VuFindTest/Unit/DbTestCase.php
+++ b/module/VuFind/src/VuFindTest/Unit/DbTestCase.php
@@ -66,6 +66,28 @@ abstract class DbTestCase extends TestCase
             );
             $factory->setServiceLocator($sm);
             $sm->setService('VuFind\DbTablePluginManager', $factory);
+
+            // Override the configuration so PostgreSQL tests can work:
+            $sm->setAllowOverride(true);
+            $sm->setService(
+                'config',
+                array(
+                    'vufind' => array(
+                        'pgsql_seq_mapping'  => array(
+                            'comments'       => array('id', 'comments_id_seq'),
+                            'oai_resumption' => array('id', 'oai_resumption_id_seq'),
+                            'resource'       => array('id', 'resource_id_seq'),
+                            'resource_tags'  => array('id', 'resource_tags_id_seq'),
+                            'search'         => array('id', 'search_id_seq'),
+                            'session'        => array('id', 'session_id_seq'),
+                            'tags'           => array('id', 'tags_id_seq'),
+                            'user'           => array('id', 'user_id_seq'),
+                            'user_list'      => array('id', 'user_list_id_seq'),
+                            'user_resource'  => array('id', 'user_resource_id_seq')
+                        )
+                    )
+                )
+            );
         }
         return $sm;
     }