From 14050e507576bf5589b51fe5369ab89fb7534ea0 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Tue, 29 Apr 2014 16:02:37 -0400 Subject: [PATCH] Fixed broken tests. --- .../VuFind/src/VuFindTest/Unit/DbTestCase.php | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/module/VuFind/src/VuFindTest/Unit/DbTestCase.php b/module/VuFind/src/VuFindTest/Unit/DbTestCase.php index 960babca78b..3e4447f13ff 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; } -- GitLab