mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 04:53:26 +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;
|
return $generator;
|
||||||
}));
|
}));
|
||||||
$app['translator'] = $this->createTranslatorMock();
|
$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;
|
$app['debug'] = true;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user