diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-05-02 13:22:45 +0200 |
---|---|---|
committer | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-05-02 13:22:45 +0200 |
commit | deb5d9766731dd35bbff75e29867d049a3254061 (patch) | |
tree | 4f57a45ec23b0ea869465fbbea3dc41b0ebef265 /src/Wallabag/ApiBundle/Tests | |
parent | f0de35d2ee28031ff6a6a9406b07ed1aafc8ea4b (diff) | |
parent | 51a15609b3bb0635e5cbea8511d983e2c5a97fe7 (diff) | |
download | wallabag-deb5d9766731dd35bbff75e29867d049a3254061.tar.gz wallabag-deb5d9766731dd35bbff75e29867d049a3254061.tar.zst wallabag-deb5d9766731dd35bbff75e29867d049a3254061.zip |
Merge pull request #2010 from wallabag/set-title-via-post-api
Set the title via POST /api/entries
Diffstat (limited to 'src/Wallabag/ApiBundle/Tests')
-rw-r--r-- | src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php b/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php index 839ff386..2f2d92ee 100644 --- a/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php +++ b/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php | |||
@@ -152,6 +152,7 @@ class WallabagRestControllerTest extends WallabagApiTestCase | |||
152 | $this->client->request('POST', '/api/entries.json', [ | 152 | $this->client->request('POST', '/api/entries.json', [ |
153 | 'url' => 'http://www.lemonde.fr/pixels/article/2015/03/28/plongee-dans-l-univers-d-ingress-le-jeu-de-google-aux-frontieres-du-reel_4601155_4408996.html', | 153 | 'url' => 'http://www.lemonde.fr/pixels/article/2015/03/28/plongee-dans-l-univers-d-ingress-le-jeu-de-google-aux-frontieres-du-reel_4601155_4408996.html', |
154 | 'tags' => 'google', | 154 | 'tags' => 'google', |
155 | 'title' => 'New title for my article', | ||
155 | ]); | 156 | ]); |
156 | 157 | ||
157 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); | 158 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); |
@@ -162,6 +163,7 @@ class WallabagRestControllerTest extends WallabagApiTestCase | |||
162 | $this->assertEquals('http://www.lemonde.fr/pixels/article/2015/03/28/plongee-dans-l-univers-d-ingress-le-jeu-de-google-aux-frontieres-du-reel_4601155_4408996.html', $content['url']); | 163 | $this->assertEquals('http://www.lemonde.fr/pixels/article/2015/03/28/plongee-dans-l-univers-d-ingress-le-jeu-de-google-aux-frontieres-du-reel_4601155_4408996.html', $content['url']); |
163 | $this->assertEquals(false, $content['is_archived']); | 164 | $this->assertEquals(false, $content['is_archived']); |
164 | $this->assertEquals(false, $content['is_starred']); | 165 | $this->assertEquals(false, $content['is_starred']); |
166 | $this->assertEquals('New title for my article', $content['title']); | ||
165 | $this->assertEquals(1, $content['user_id']); | 167 | $this->assertEquals(1, $content['user_id']); |
166 | $this->assertCount(1, $content['tags']); | 168 | $this->assertCount(1, $content['tags']); |
167 | } | 169 | } |