mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
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>
This commit is contained in:
parent
d1f260e2d7
commit
f5ea67e4cf
3 changed files with 7 additions and 2 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue