aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php
diff options
context:
space:
mode:
authorJeremy Benoist <jbenoist@20minutes.fr>2017-06-01 11:31:45 +0200
committerJeremy Benoist <jbenoist@20minutes.fr>2017-06-01 11:31:45 +0200
commit6acadf8e98cf6021a9019773df75bdb151865687 (patch)
treec517962bd405fff9863a7fc7ed5b7d821f68f90f /tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php
parent843182c7cf428b5f6b8a1ff7057adc703c1e816e (diff)
downloadwallabag-6acadf8e98cf6021a9019773df75bdb151865687.tar.gz
wallabag-6acadf8e98cf6021a9019773df75bdb151865687.tar.zst
wallabag-6acadf8e98cf6021a9019773df75bdb151865687.zip
Rewrote code & fix tests
Diffstat (limited to 'tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php')
-rw-r--r--tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php b/tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php
index 3b2375a1..834b7ef5 100644
--- a/tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php
+++ b/tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php
@@ -113,7 +113,7 @@ class WallabagV1ImportTest extends \PHPUnit_Framework_TestCase
113 113
114 $this->contentProxy 114 $this->contentProxy
115 ->expects($this->exactly(1)) 115 ->expects($this->exactly(1))
116 ->method('importEntry') 116 ->method('updateEntry')
117 ->willReturn($entry); 117 ->willReturn($entry);
118 118
119 $res = $wallabagV1Import->import(); 119 $res = $wallabagV1Import->import();
@@ -142,7 +142,7 @@ class WallabagV1ImportTest extends \PHPUnit_Framework_TestCase
142 142
143 $this->contentProxy 143 $this->contentProxy
144 ->expects($this->exactly(3)) 144 ->expects($this->exactly(3))
145 ->method('importEntry') 145 ->method('updateEntry')
146 ->willReturn(new Entry($this->user)); 146 ->willReturn(new Entry($this->user));
147 147
148 // check that every entry persisted are archived 148 // check that every entry persisted are archived
@@ -182,7 +182,7 @@ class WallabagV1ImportTest extends \PHPUnit_Framework_TestCase
182 182
183 $this->contentProxy 183 $this->contentProxy
184 ->expects($this->never()) 184 ->expects($this->never())
185 ->method('importEntry'); 185 ->method('updateEntry');
186 186
187 $producer = $this->getMockBuilder('OldSound\RabbitMqBundle\RabbitMq\Producer') 187 $producer = $this->getMockBuilder('OldSound\RabbitMqBundle\RabbitMq\Producer')
188 ->disableOriginalConstructor() 188 ->disableOriginalConstructor()
@@ -222,7 +222,7 @@ class WallabagV1ImportTest extends \PHPUnit_Framework_TestCase
222 222
223 $this->contentProxy 223 $this->contentProxy
224 ->expects($this->never()) 224 ->expects($this->never())
225 ->method('importEntry'); 225 ->method('updateEntry');
226 226
227 $factory = new RedisMockFactory(); 227 $factory = new RedisMockFactory();
228 $redisMock = $factory->getAdapter('Predis\Client', true); 228 $redisMock = $factory->getAdapter('Predis\Client', true);