Cleanup tests

- 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)
This commit is contained in:
Jeremy Benoist
2015-12-29 15:04:46 +01:00
parent 01fddd0cb2
commit 1bb1939ab7
2 changed files with 1 additions and 6 deletions

View File

@ -337,10 +337,6 @@ class WallabagRestController extends FOSRestController
->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);