]> git.immae.eu Git - github/wallabag/wallabag.git/commit
Ensure access_token are removed 2351/head
authorJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 7 Oct 2016 22:02:22 +0000 (00:02 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 7 Oct 2016 22:05:41 +0000 (00:05 +0200)
commitee32248f43baef7e995c9e420cd00a137e626cf0
treee8119e417887b3132bc7c448a7591943c90dcab2
parentb0da721a5238ece3056ae7af760e9455f7af3e11
Ensure access_token are removed

When we remove the client, we should ensure that access_token are also removed.

To ensure that, I created a test that generated an access_token. So when we remove the client, this association should be cascaded and shouldn’t generate an error.

Also I moved some Api related stuff to the ApiBundle (like the developer controler and ClientType form)
app/config/routing.yml
src/Wallabag/ApiBundle/Controller/DeveloperController.php [moved from src/Wallabag/CoreBundle/Controller/DeveloperController.php with 97% similarity]
src/Wallabag/ApiBundle/Entity/Client.php
src/Wallabag/ApiBundle/Form/Type/ClientType.php [moved from src/Wallabag/CoreBundle/Form/Type/ClientType.php with 97% similarity]
tests/Wallabag/ApiBundle/Controller/DeveloperControllerTest.php [moved from tests/Wallabag/CoreBundle/Controller/DeveloperControllerTest.php with 72% similarity]