Fixed tests

This commit is contained in:
Nicolas Lœuillet 2017-05-12 13:47:53 +02:00
parent 0a033767db
commit 3554364bed
No known key found for this signature in database
GPG Key ID: 7A5E5FFCBA7EF402
1 changed files with 7 additions and 1 deletions

View 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();
}
}