diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php index 7a50b373..11f1d410 100644 --- a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php +++ b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php | |||
@@ -210,16 +210,18 @@ class ContentProxyTest extends \PHPUnit_Framework_TestCase | |||
210 | $tagger->expects($this->once()) | 210 | $tagger->expects($this->once()) |
211 | ->method('tag'); | 211 | ->method('tag'); |
212 | 212 | ||
213 | $graby = $this->getMockBuilder('Graby\Graby')->getMock(); | 213 | $proxy = new ContentProxy((new Graby()), $tagger, $this->getLogger(), $this->fetchingErrorMessage); |
214 | 214 | $entry = $proxy->updateEntry( | |
215 | $proxy = new ContentProxy($graby, $tagger, $this->getLogger(), $this->fetchingErrorMessage); | 215 | new Entry(new User()), |
216 | $entry = $proxy->updateEntry(new Entry(new User()), 'http://0.0.0.0', [ | 216 | 'http://0.0.0.0', |
217 | 'html' => str_repeat('this is my content', 325), | 217 | [ |
218 | 'title' => 'this is my title', | 218 | 'html' => str_repeat('this is my content', 325), |
219 | 'url' => 'http://1.1.1.1', | 219 | 'title' => 'this is my title', |
220 | 'content_type' => 'text/html', | 220 | 'url' => 'http://1.1.1.1', |
221 | 'language' => 'fr', | 221 | 'content_type' => 'text/html', |
222 | ]); | 222 | 'language' => 'fr', |
223 | ] | ||
224 | ); | ||
223 | 225 | ||
224 | $this->assertEquals('http://1.1.1.1', $entry->getUrl()); | 226 | $this->assertEquals('http://1.1.1.1', $entry->getUrl()); |
225 | $this->assertEquals('this is my title', $entry->getTitle()); | 227 | $this->assertEquals('this is my title', $entry->getTitle()); |
@@ -277,9 +279,7 @@ class ContentProxyTest extends \PHPUnit_Framework_TestCase | |||
277 | $tagger->expects($this->once()) | 279 | $tagger->expects($this->once()) |
278 | ->method('tag'); | 280 | ->method('tag'); |
279 | 281 | ||
280 | $graby = new Graby(); | 282 | $proxy = new ContentProxy((new Graby()), $tagger, $this->getLogger(), $this->fetchingErrorMessage); |
281 | |||
282 | $proxy = new ContentProxy($graby, $tagger, $this->getTagRepositoryMock(), $this->getLogger(), $this->fetchingErrorMessage); | ||
283 | $entry = $proxy->updateEntry( | 283 | $entry = $proxy->updateEntry( |
284 | new Entry(new User()), | 284 | new Entry(new User()), |
285 | 'http://1.1.1.1', | 285 | 'http://1.1.1.1', |