Signed-off-by: Thomas Citharel <tcit@tcit.fr>
namespace Tests\Wallabag\CoreBundle\Helper;
namespace Tests\Wallabag\CoreBundle\Helper;
-use Psr\Log\NullLogger;
-use Wallabag\CoreBundle\Helper\ContentProxy;
use Wallabag\CoreBundle\Entity\Entry;
use Wallabag\CoreBundle\Entity\Tag;
use Wallabag\CoreBundle\Helper\TagsAssigner;
use Wallabag\UserBundle\Entity\User;
use Wallabag\CoreBundle\Repository\TagRepository;
use Wallabag\CoreBundle\Entity\Entry;
use Wallabag\CoreBundle\Entity\Tag;
use Wallabag\CoreBundle\Helper\TagsAssigner;
use Wallabag\UserBundle\Entity\User;
use Wallabag\CoreBundle\Repository\TagRepository;
-use Wallabag\CoreBundle\Helper\RuleBasedTagger;
class TagsAssignerTest extends \PHPUnit_Framework_TestCase
{
class TagsAssignerTest extends \PHPUnit_Framework_TestCase
{
public function testAssignTagsWithArrayAndExtraSpaces()
{
public function testAssignTagsWithArrayAndExtraSpaces()
{
$tagRepo = $this->getTagRepositoryMock();
$tagsAssigner = new TagsAssigner($tagRepo);
$tagRepo = $this->getTagRepositoryMock();
$tagsAssigner = new TagsAssigner($tagRepo);
public function testAssignTagsNotFlushed()
{
public function testAssignTagsNotFlushed()
{
$tagRepo = $this->getTagRepositoryMock();
$tagRepo->expects($this->never())
->method('__call');
$tagRepo = $this->getTagRepositoryMock();
$tagRepo->expects($this->never())
->method('__call');