diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2016-01-15 08:24:32 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-09-11 21:57:09 +0200 |
commit | 56c778b4152a1b886353933276ee3626e4e8c004 (patch) | |
tree | 203a2bc2fc36016b5a51703b04d86b034d9393c3 /tests/Wallabag/ImportBundle | |
parent | 59758d8fe5ad5ff554391515a78d84b0d47bdb76 (diff) | |
download | wallabag-56c778b4152a1b886353933276ee3626e4e8c004.tar.gz wallabag-56c778b4152a1b886353933276ee3626e4e8c004.tar.zst wallabag-56c778b4152a1b886353933276ee3626e4e8c004.zip |
1st draft for rabbitMQ
Diffstat (limited to 'tests/Wallabag/ImportBundle')
-rw-r--r-- | tests/Wallabag/ImportBundle/Import/PocketImportTest.php | 11 |
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(); |