]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fixed tests
authorNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 12 May 2017 11:47:53 +0000 (13:47 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 12 May 2017 11:47:53 +0000 (13:47 +0200)
tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php

index 17b08c2ac7cbe9f9b2138c894bae476c8a57791b..522cf3b36c397a378eeaf0539c9185d35927d5f5 100644 (file)
@@ -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();
+    }
 }