aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/ApiBundle/Controller
diff options
context:
space:
mode:
authorKevin Decherf <kevin@kdecherf.com>2017-12-17 21:05:25 +0100
committerKevin Decherf <kevin@kdecherf.com>2017-12-17 21:07:46 +0100
commitf5ea67e4cf8e415530d8c09e1b22c66c7064b3c6 (patch)
treeeefbf1b83e81c7fb450d78f733de98ab03abffa3 /tests/Wallabag/ApiBundle/Controller
parentd1f260e2d7bc62960267dbe70a1d8dd64f8dd9a7 (diff)
downloadwallabag-f5ea67e4cf8e415530d8c09e1b22c66c7064b3c6.tar.gz
wallabag-f5ea67e4cf8e415530d8c09e1b22c66c7064b3c6.tar.zst
wallabag-f5ea67e4cf8e415530d8c09e1b22c66c7064b3c6.zip
api: copy entry object before sending, to keep id
Workaround for https://github.com/wallabag/android-app/issues/646 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
Diffstat (limited to 'tests/Wallabag/ApiBundle/Controller')
-rw-r--r--tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php1
1 files changed, 1 insertions, 0 deletions
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
408 408
409 $this->assertSame($entry->getTitle(), $content['title']); 409 $this->assertSame($entry->getTitle(), $content['title']);
410 $this->assertSame($entry->getUrl(), $content['url']); 410 $this->assertSame($entry->getUrl(), $content['url']);
411 $this->assertSame($entry->getId(), $content['id']);
411 412
412 // We'll try to delete this entry again 413 // We'll try to delete this entry again
413 $this->client->request('DELETE', '/api/entries/' . $entry->getId() . '.json'); 414 $this->client->request('DELETE', '/api/entries/' . $entry->getId() . '.json');