]> git.immae.eu Git - github/wallabag/wallabag.git/commit
Ensure orphan tag are remove in API 2397/head
authorJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 7 Oct 2016 21:31:53 +0000 (23:31 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 7 Oct 2016 21:31:53 +0000 (23:31 +0200)
commitac8cf632bb3a225c1b69d16e714ff60a2e988c89
tree6789145b0518564d943399fd1b37830089cc4376
parent3049afe190d125e4861059b6bbad7c6fbea6f1bb
Ensure orphan tag are remove in API

When the association between a tag and an entry is removed, if the tag doesn’t have other entries, we can remove it.

Also add more tests for that part and ensure TagControllerTest is isolated from the rest of the test suite (finally!)
src/Wallabag/ApiBundle/Controller/WallabagRestController.php
src/Wallabag/CoreBundle/Controller/TagController.php
src/Wallabag/CoreBundle/Resources/config/services.yml
tests/Wallabag/ApiBundle/Controller/WallabagRestControllerTest.php
tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
tests/Wallabag/CoreBundle/Controller/TagControllerTest.php