aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/CoreBundle
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2017-05-12 13:47:53 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2017-05-12 13:47:53 +0200
commit3554364bedec2b831074d5d4e7409b4124e86a59 (patch)
tree1b6659cd5af5fb38d145117423b9899de02635b4 /tests/Wallabag/CoreBundle
parent0a033767db51d17439bfbd16bb0558327f1fc7a0 (diff)
downloadwallabag-3554364bedec2b831074d5d4e7409b4124e86a59.tar.gz
wallabag-3554364bedec2b831074d5d4e7409b4124e86a59.tar.zst
wallabag-3554364bedec2b831074d5d4e7409b4124e86a59.zip
Fixed tests
Diffstat (limited to 'tests/Wallabag/CoreBundle')
-rw-r--r--tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php b/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php
index 17b08c2a..522cf3b3 100644
--- a/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php
+++ b/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php
@@ -2,6 +2,7 @@
2 2
3namespace Tests\Wallabag\CoreBundle\Helper; 3namespace Tests\Wallabag\CoreBundle\Helper;
4 4
5use Psr\Log\NullLogger;
5use Wallabag\CoreBundle\Entity\Config; 6use Wallabag\CoreBundle\Entity\Config;
6use Wallabag\CoreBundle\Entity\Entry; 7use Wallabag\CoreBundle\Entity\Entry;
7use Wallabag\CoreBundle\Entity\Tag; 8use Wallabag\CoreBundle\Entity\Tag;
@@ -22,7 +23,7 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase
22 $this->tagRepository = $this->getTagRepositoryMock(); 23 $this->tagRepository = $this->getTagRepositoryMock();
23 $this->entryRepository = $this->getEntryRepositoryMock(); 24 $this->entryRepository = $this->getEntryRepositoryMock();
24 25
25 $this->tagger = new RuleBasedTagger($this->rulerz, $this->tagRepository, $this->entryRepository); 26 $this->tagger = new RuleBasedTagger($this->rulerz, $this->tagRepository, $this->entryRepository, $this->getLogger());
26 } 27 }
27 28
28 public function testTagWithNoRule() 29 public function testTagWithNoRule()
@@ -209,4 +210,9 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase
209 ->disableOriginalConstructor() 210 ->disableOriginalConstructor()
210 ->getMock(); 211 ->getMock();
211 } 212 }
213
214 private function getLogger()
215 {
216 return new NullLogger();
217 }
212} 218}