diff --git a/module/VuFind/src/VuFindTest/Unit/TestCase.php b/module/VuFind/src/VuFindTest/Unit/TestCase.php index 326c7d92eba124c5dc23b0619f5c6d5f949ccb7e..35808d258093c97becef77a3a6f3c8292282d987 100644 --- a/module/VuFind/src/VuFindTest/Unit/TestCase.php +++ b/module/VuFind/src/VuFindTest/Unit/TestCase.php @@ -215,6 +215,11 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase $this->serviceManager->get('VuFind\RecordDriverPluginManager') ) ); + $this->serviceManager->setService('Config', array()); + $factory = new \Zend\I18n\Translator\TranslatorServiceFactory(); + $this->serviceManager->setService( + 'VuFind\Translator', $factory->createService($this->serviceManager) + ); } return $this->serviceManager; }