mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 20:43:25 +00:00
Use a subscriber mock for unit tests
This commit is contained in:
@@ -158,6 +158,10 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase
|
||||
return $generator;
|
||||
}));
|
||||
$app['translator'] = $this->createTranslatorMock();
|
||||
$app['phraseanet.SE.subscriber'] = $this->getMock('Symfony\Component\EventDispatcher\EventSubscriberInterface');
|
||||
$app['phraseanet.SE.subscriber']::staticExpects($this->any())
|
||||
->method('getSubscribedEvents')
|
||||
->will($this->returnValue([]));
|
||||
|
||||
$app['debug'] = true;
|
||||
|
||||
|
Reference in New Issue
Block a user