diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-05-12 13:47:53 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-05-12 13:47:53 +0200 |
commit | 3554364bedec2b831074d5d4e7409b4124e86a59 (patch) | |
tree | 1b6659cd5af5fb38d145117423b9899de02635b4 /tests/Wallabag | |
parent | 0a033767db51d17439bfbd16bb0558327f1fc7a0 (diff) | |
download | wallabag-3554364bedec2b831074d5d4e7409b4124e86a59.tar.gz wallabag-3554364bedec2b831074d5d4e7409b4124e86a59.tar.zst wallabag-3554364bedec2b831074d5d4e7409b4124e86a59.zip |
Fixed tests
Diffstat (limited to 'tests/Wallabag')
-rw-r--r-- | tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php | 8 |
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 | ||
3 | namespace Tests\Wallabag\CoreBundle\Helper; | 3 | namespace Tests\Wallabag\CoreBundle\Helper; |
4 | 4 | ||
5 | use Psr\Log\NullLogger; | ||
5 | use Wallabag\CoreBundle\Entity\Config; | 6 | use Wallabag\CoreBundle\Entity\Config; |
6 | use Wallabag\CoreBundle\Entity\Entry; | 7 | use Wallabag\CoreBundle\Entity\Entry; |
7 | use Wallabag\CoreBundle\Entity\Tag; | 8 | use 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 | } |