aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Tests
diff options
context:
space:
mode:
authorKévin Gomez <contact@kevingomez.fr>2015-10-17 17:45:51 +0200
committerKévin Gomez <contact@kevingomez.fr>2015-11-11 16:23:49 +0100
commit1c9cd2a7f03a66a1ae5132ff270e94a7fe6eb9ed (patch)
tree954a28ce5d6cfa3b24746a6d60943a4de64e3838 /src/Wallabag/CoreBundle/Tests
parent1dc4e5da2e281ee8acc69ff025c42369cf778387 (diff)
downloadwallabag-1c9cd2a7f03a66a1ae5132ff270e94a7fe6eb9ed.tar.gz
wallabag-1c9cd2a7f03a66a1ae5132ff270e94a7fe6eb9ed.tar.zst
wallabag-1c9cd2a7f03a66a1ae5132ff270e94a7fe6eb9ed.zip
Errors in the automatic tagging do not prevent the entry from being added
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests')
-rw-r--r--src/Wallabag/CoreBundle/Tests/Helper/ContentProxyTest.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Helper/ContentProxyTest.php b/src/Wallabag/CoreBundle/Tests/Helper/ContentProxyTest.php
index 1688a48a..f59edb0c 100644
--- a/src/Wallabag/CoreBundle/Tests/Helper/ContentProxyTest.php
+++ b/src/Wallabag/CoreBundle/Tests/Helper/ContentProxyTest.php
@@ -29,7 +29,7 @@ class ContentProxyTest extends \PHPUnit_Framework_TestCase
29 'language' => '', 29 'language' => '',
30 )); 30 ));
31 31
32 $proxy = new ContentProxy($graby, $tagger); 32 $proxy = new ContentProxy($graby, $tagger, $this->getLoggerMock());
33 $entry = $proxy->updateEntry(new Entry(new User()), 'http://0.0.0.0'); 33 $entry = $proxy->updateEntry(new Entry(new User()), 'http://0.0.0.0');
34 34
35 $this->assertEquals('http://0.0.0.0', $entry->getUrl()); 35 $this->assertEquals('http://0.0.0.0', $entry->getUrl());
@@ -67,7 +67,7 @@ class ContentProxyTest extends \PHPUnit_Framework_TestCase
67 ), 67 ),
68 )); 68 ));
69 69
70 $proxy = new ContentProxy($graby, $tagger); 70 $proxy = new ContentProxy($graby, $tagger, $this->getLoggerMock());
71 $entry = $proxy->updateEntry(new Entry(new User()), 'http://domain.io'); 71 $entry = $proxy->updateEntry(new Entry(new User()), 'http://domain.io');
72 72
73 $this->assertEquals('http://domain.io', $entry->getUrl()); 73 $this->assertEquals('http://domain.io', $entry->getUrl());
@@ -106,7 +106,7 @@ class ContentProxyTest extends \PHPUnit_Framework_TestCase
106 ), 106 ),
107 )); 107 ));
108 108
109 $proxy = new ContentProxy($graby, $tagger); 109 $proxy = new ContentProxy($graby, $tagger, $this->getLoggerMock());
110 $entry = $proxy->updateEntry(new Entry(new User()), 'http://0.0.0.0'); 110 $entry = $proxy->updateEntry(new Entry(new User()), 'http://0.0.0.0');
111 111
112 $this->assertEquals('http://1.1.1.1', $entry->getUrl()); 112 $this->assertEquals('http://1.1.1.1', $entry->getUrl());
@@ -126,4 +126,9 @@ class ContentProxyTest extends \PHPUnit_Framework_TestCase
126 ->disableOriginalConstructor() 126 ->disableOriginalConstructor()
127 ->getMock(); 127 ->getMock();
128 } 128 }
129
130 private function getLoggerMock()
131 {
132 return $this->getMock('Psr\Log\LoggerInterface');
133 }
129} 134}