diff --git a/module/VuFind/src/VuFind/Tests/TestCase.php b/module/VuFind/src/VuFind/Tests/TestCase.php
index 014f2a4edd75f8eaa41321fb140717ea2277443b..180a99b3943de05956723c552c853ab4adebb66c 100644
--- a/module/VuFind/src/VuFind/Tests/TestCase.php
+++ b/module/VuFind/src/VuFind/Tests/TestCase.php
@@ -127,6 +127,7 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase
             );
             $serviceManager->setService('SearchManager', $this->searchManager);
             $this->searchManager->setServiceLocator($serviceManager);
+            \VuFind\Connection\Manager::setServiceLocator($serviceManager);
         }
         return $this->searchManager;
     }