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

Fixed bug in unit test.

parent e04c49d9
No related merge requests found
...@@ -52,7 +52,9 @@ abstract class DbTestCase extends TestCase ...@@ -52,7 +52,9 @@ abstract class DbTestCase extends TestCase
// Add database service: // Add database service:
if (!$sm->has('VuFind\DbTablePluginManager')) { if (!$sm->has('VuFind\DbTablePluginManager')) {
$dbFactory = new \VuFind\Db\AdapterFactory($sm->get('VuFind\Config')); $dbFactory = new \VuFind\Db\AdapterFactory(
$sm->get('VuFind\Config')->get('config')
);
$sm->setService('VuFind\DbAdapter', $dbFactory->getAdapter()); $sm->setService('VuFind\DbAdapter', $dbFactory->getAdapter());
$factory = new \VuFind\Db\Table\PluginManager( $factory = new \VuFind\Db\Table\PluginManager(
new \Zend\ServiceManager\Config( new \Zend\ServiceManager\Config(
......
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