Skip to content
Snippets Groups Projects
Commit 14050e50 authored by Demian Katz's avatar Demian Katz
Browse files

Fixed broken tests.

parent b8f347d3
No related merge requests found
......@@ -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;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment