diff --git a/module/VuFind/src/VuFindTest/Unit/TestCase.php b/module/VuFind/src/VuFindTest/Unit/TestCase.php index fe07259b64f6dc2e611ad15d1c1e8efdb1e1f6ff..17695cbf8c9e0d753d66810f232023e880da6b30 100644 --- a/module/VuFind/src/VuFindTest/Unit/TestCase.php +++ b/module/VuFind/src/VuFindTest/Unit/TestCase.php @@ -167,6 +167,9 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase $this->serviceManager->setService( 'VuFind\Config', new \VuFind\Config\PluginManager($cfg) ); + $this->serviceManager->setService( + 'SharedEventManager', new \Zend\EventManager\SharedEventManager() + ); \VuFind\Connection\Manager::setServiceLocator($this->serviceManager); } return $this->serviceManager;