protected $em;
protected $contentProxy;
protected $logHandler;
+ protected $tagsAssigner;
+ protected $uow;
private function getPocketImport($consumerKey = 'ConsumerKey', $dispatched = 0)
{
->disableOriginalConstructor()
->getMock();
+ $this->tagsAssigner = $this->getMockBuilder('Wallabag\CoreBundle\Helper\TagsAssigner')
+ ->disableOriginalConstructor()
+ ->getMock();
+
$this->em = $this->getMockBuilder('Doctrine\ORM\EntityManager')
->disableOriginalConstructor()
->getMock();
->expects($this->exactly($dispatched))
->method('dispatch');
- $pocket = new PocketImport($this->em, $this->contentProxy, $dispatcher);
+ $pocket = new PocketImport($this->em, $this->contentProxy, $this->tagsAssigner, $dispatcher);
$pocket->setUser($this->user);
$this->logHandler = new TestHandler();