From f5ea67e4cf8e415530d8c09e1b22c66c7064b3c6 Mon Sep 17 00:00:00 2001 From: Kevin Decherf Date: Sun, 17 Dec 2017 21:05:25 +0100 Subject: api: copy entry object before sending, to keep id Workaround for https://github.com/wallabag/android-app/issues/646 Signed-off-by: Kevin Decherf --- tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/Wallabag/ApiBundle/Controller') diff --git a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php index 5c7b988c..2e9b9305 100644 --- a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php +++ b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php @@ -408,6 +408,7 @@ class EntryRestControllerTest extends WallabagApiTestCase $this->assertSame($entry->getTitle(), $content['title']); $this->assertSame($entry->getUrl(), $content['url']); + $this->assertSame($entry->getId(), $content['id']); // We'll try to delete this entry again $this->client->request('DELETE', '/api/entries/' . $entry->getId() . '.json'); -- cgit v1.2.3