From: Nicolas LÅ“uillet Date: Fri, 12 May 2017 11:47:53 +0000 (+0200) Subject: Fixed tests X-Git-Tag: 2.3.0~31^2~96^2~1 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;ds=inline;h=3554364bedec2b831074d5d4e7409b4124e86a59;p=github%2Fwallabag%2Fwallabag.git Fixed tests --- 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 @@ namespace Tests\Wallabag\CoreBundle\Helper; +use Psr\Log\NullLogger; use Wallabag\CoreBundle\Entity\Config; use Wallabag\CoreBundle\Entity\Entry; use Wallabag\CoreBundle\Entity\Tag; @@ -22,7 +23,7 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase $this->tagRepository = $this->getTagRepositoryMock(); $this->entryRepository = $this->getEntryRepositoryMock(); - $this->tagger = new RuleBasedTagger($this->rulerz, $this->tagRepository, $this->entryRepository); + $this->tagger = new RuleBasedTagger($this->rulerz, $this->tagRepository, $this->entryRepository, $this->getLogger()); } public function testTagWithNoRule() @@ -209,4 +210,9 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase ->disableOriginalConstructor() ->getMock(); } + + private function getLogger() + { + return new NullLogger(); + } }