- WallabagRestController: remove the tag deletion from the API since we can't remove a tag now, we only remove reference to entries
- RuleBasedTaggerTest: remove workaround for asserting tag are equal since problem was related to mock expects (_call instead of findOneByLabel which was removed from the tag repository)
->getRepository('WallabagCoreBundle:Entry')
->removeTag($this->getUser()->getId(), $tag);
- $em = $this->getDoctrine()->getManager();
- $em->remove($tag);
- $em->flush();
-
$json = $this->get('serializer')->serialize($tag, 'json');
return $this->renderJsonResponse($json);
$user = $this->getUser([$taggingRule]);
$entry = new Entry($user);
$tag = new Tag();
- $tag->setLabel('foo');
$this->rulerz
->expects($this->once())
$this->assertFalse($entry->getTags()->isEmpty());
$tags = $entry->getTags();
- $this->assertSame($tag->getLabel(), $tags[0]->getLabel());
+ $this->assertSame($tag, $tags[0]);
}
public function testSameTagWithDifferentfMatchingRules()