diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-12-18 12:33:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-18 12:33:05 +0100 |
commit | 3ccf086391588b1eb0f6d7bcc420ed529f7fdd8f (patch) | |
tree | eefbf1b83e81c7fb450d78f733de98ab03abffa3 /tests/Wallabag/ApiBundle/Controller | |
parent | d1f260e2d7bc62960267dbe70a1d8dd64f8dd9a7 (diff) | |
parent | f5ea67e4cf8e415530d8c09e1b22c66c7064b3c6 (diff) | |
download | wallabag-3ccf086391588b1eb0f6d7bcc420ed529f7fdd8f.tar.gz wallabag-3ccf086391588b1eb0f6d7bcc420ed529f7fdd8f.tar.zst wallabag-3ccf086391588b1eb0f6d7bcc420ed529f7fdd8f.zip |
Merge pull request #3516 from wallabag/delete-id
api: copy entry object before sending, to keep id
Diffstat (limited to 'tests/Wallabag/ApiBundle/Controller')
-rw-r--r-- | tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | 1 |
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'); |