aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Wallabag/ImportBundle/Import/PocketImportTest.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/Wallabag/ImportBundle/Import/PocketImportTest.php b/tests/Wallabag/ImportBundle/Import/PocketImportTest.php
index 8534e1c8..a0f943ee 100644
--- a/tests/Wallabag/ImportBundle/Import/PocketImportTest.php
+++ b/tests/Wallabag/ImportBundle/Import/PocketImportTest.php
@@ -27,8 +27,9 @@ class PocketImportTest extends \PHPUnit_Framework_TestCase
27 protected $em; 27 protected $em;
28 protected $contentProxy; 28 protected $contentProxy;
29 protected $logHandler; 29 protected $logHandler;
30 protected $producer;
30 31
31 private function getPocketImport($consumerKey = 'ConsumerKey') 32 private function getPocketImport($consumerKey = 'ConsumerKey', $rabbitMQ = false)
32 { 33 {
33 $this->user = new User(); 34 $this->user = new User();
34 35
@@ -65,11 +66,17 @@ class PocketImportTest extends \PHPUnit_Framework_TestCase
65 ->with('pocket_consumer_key') 66 ->with('pocket_consumer_key')
66 ->willReturn($consumerKey); 67 ->willReturn($consumerKey);
67 68
69 $this->producer = $this->getMockBuilder('OldSound\RabbitMqBundle\RabbitMq\Producer')
70 ->disableOriginalConstructor()
71 ->getMock();
72
68 $pocket = new PocketImportMock( 73 $pocket = new PocketImportMock(
69 $this->tokenStorage, 74 $this->tokenStorage,
70 $this->em, 75 $this->em,
71 $this->contentProxy, 76 $this->contentProxy,
72 $config 77 $config,
78 $rabbitMQ,
79 $this->producer
73 ); 80 );
74 81
75 $this->logHandler = new TestHandler(); 82 $this->logHandler = new TestHandler();