Merge pull request #823 from romainneutron/search-engine-subscriber-mock

[3.9] Search engine subscriber fixes
This commit is contained in:
Romain Neutron
2013-12-05 03:49:04 -08:00
3 changed files with 5 additions and 2 deletions

View File

@@ -12,7 +12,6 @@
namespace Alchemy\Phrasea\SearchEngine\SphinxSearch;
use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\SearchEngine\Phrasea\SphinxSearchEngineSubscriber;
use Alchemy\Phrasea\SearchEngine\SearchEngineInterface;
use Alchemy\Phrasea\SearchEngine\SearchEngineOptions;
use Alchemy\Phrasea\SearchEngine\SearchEngineResult;

View File

@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
namespace Alchemy\Phrasea\SearchEngine\Phrasea;
namespace Alchemy\Phrasea\SearchEngine\SphinxSearch;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

View File

@@ -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;