namespace Tests\Wallabag\CoreBundle\Helper;
+use Psr\Log\NullLogger;
use Wallabag\CoreBundle\Entity\Config;
use Wallabag\CoreBundle\Entity\Entry;
use Wallabag\CoreBundle\Entity\Tag;
$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()
->disableOriginalConstructor()
->getMock();
}
+
+ private function getLogger()
+ {
+ return new NullLogger();
+ }
}