]> git.immae.eu Git - github/wallabag/wallabag.git/commit
tests: create entry for testDeleteEntry, fix missing id
authorKevin Decherf <kevin@kdecherf.com>
Sun, 17 Feb 2019 14:25:21 +0000 (15:25 +0100)
committerKevin Decherf <kevin@kdecherf.com>
Sun, 17 Feb 2019 14:25:21 +0000 (15:25 +0100)
commit4e0ed3368d2bdc2fa0d330e58902e792a896be06
tree8343e13a3d04a6bf51f8b96a7d244ddbedecfd4d
parentb1992b340e21b6846a1ec2ae6ddd7217f3b24fb5
tests: create entry for testDeleteEntry, fix missing id

When using the entity manager to retrieve an already stored entry, the
id disapears from $entry after the first delete call. This leads to
testing a nonexistent endpoint (api/entries/.json) during the second
delete call.

This change now creates an entry specifically for the test.

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php