mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Move Tags assigner to a separate file
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
35941d57ee
commit
6bc6fb1f60
20 changed files with 274 additions and 200 deletions
|
@ -23,6 +23,8 @@ class PocketImportTest extends \PHPUnit_Framework_TestCase
|
|||
protected $em;
|
||||
protected $contentProxy;
|
||||
protected $logHandler;
|
||||
protected $tagsAssigner;
|
||||
protected $uow;
|
||||
|
||||
private function getPocketImport($consumerKey = 'ConsumerKey', $dispatched = 0)
|
||||
{
|
||||
|
@ -37,6 +39,10 @@ class PocketImportTest extends \PHPUnit_Framework_TestCase
|
|||
->disableOriginalConstructor()
|
||||
->getMock();
|
||||
|
||||
$this->tagsAssigner = $this->getMockBuilder('Wallabag\CoreBundle\Helper\TagsAssigner')
|
||||
->disableOriginalConstructor()
|
||||
->getMock();
|
||||
|
||||
$this->em = $this->getMockBuilder('Doctrine\ORM\EntityManager')
|
||||
->disableOriginalConstructor()
|
||||
->getMock();
|
||||
|
@ -63,7 +69,7 @@ class PocketImportTest extends \PHPUnit_Framework_TestCase
|
|||
->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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue