]> git.immae.eu Git - github/wallabag/wallabag.git/commit - tests/Wallabag/ApiBundle/Controller/WallabagRestControllerTest.php
Add some tests
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sun, 24 Jul 2016 08:55:49 +0000 (10:55 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 23 Aug 2016 05:26:58 +0000 (07:26 +0200)
commita0e1eafc35e1007056555651ace7221d09cd8270
treef565b8d53fbf89e0a2221467fee213fdc3153050
parent9bf83f1fb8d588b871a5d12289179de087756d02
Add some tests

Also, retrieve tag from the request instead of the query (which will be the same but it's more easy to test).

Moved down `deleteTagAction` because it conflicted with the new action:

  api_delete_tag => /api/tags/{tag}.{_format}
  api_delete_tags_label => /api/tags/label.{_format}

And finally, throw exception when a tag is not found before removing it.
src/Wallabag/ApiBundle/Controller/WallabagRestController.php
tests/Wallabag/ApiBundle/Controller/WallabagRestControllerTest.php