mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-15 09:57:41 +01:00
Fixed tests
This commit is contained in:
parent
0a033767db
commit
3554364bed
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace Tests\Wallabag\CoreBundle\Helper;
|
namespace Tests\Wallabag\CoreBundle\Helper;
|
||||||
|
|
||||||
|
use Psr\Log\NullLogger;
|
||||||
use Wallabag\CoreBundle\Entity\Config;
|
use Wallabag\CoreBundle\Entity\Config;
|
||||||
use Wallabag\CoreBundle\Entity\Entry;
|
use Wallabag\CoreBundle\Entity\Entry;
|
||||||
use Wallabag\CoreBundle\Entity\Tag;
|
use Wallabag\CoreBundle\Entity\Tag;
|
||||||
@ -22,7 +23,7 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase
|
|||||||
$this->tagRepository = $this->getTagRepositoryMock();
|
$this->tagRepository = $this->getTagRepositoryMock();
|
||||||
$this->entryRepository = $this->getEntryRepositoryMock();
|
$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()
|
public function testTagWithNoRule()
|
||||||
@ -209,4 +210,9 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase
|
|||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function getLogger()
|
||||||
|
{
|
||||||
|
return new NullLogger();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user