diff --git a/module/VuFind/src/VuFind/Tests/TestCase.php b/module/VuFind/src/VuFind/Tests/TestCase.php
index 3b912adc5604f4ea3a1e8538726fc98f860d0b8d..014f2a4edd75f8eaa41321fb140717ea2277443b 100644
--- a/module/VuFind/src/VuFind/Tests/TestCase.php
+++ b/module/VuFind/src/VuFind/Tests/TestCase.php
@@ -125,8 +125,9 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase
             $serviceManager->setService(
                 'RecordDriverPluginManager', $recordDriverFactory
             );
+            $serviceManager->setService('SearchManager', $this->searchManager);
             $this->searchManager->setServiceLocator($serviceManager);
         }
         return $this->searchManager;
     }
-}
\ No newline at end of file
+}