From 51a15609b3bb0635e5cbea8511d983e2c5a97fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 2 May 2016 12:49:23 +0200 Subject: Set the title via POST /api/entries Fix #2009 --- src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Wallabag/ApiBundle/Tests/Controller') 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 $this->client->request('POST', '/api/entries.json', [ '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', 'tags' => 'google', + 'title' => 'New title for my article', ]); $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); @@ -162,6 +163,7 @@ class WallabagRestControllerTest extends WallabagApiTestCase $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']); $this->assertEquals(false, $content['is_archived']); $this->assertEquals(false, $content['is_starred']); + $this->assertEquals('New title for my article', $content['title']); $this->assertEquals(1, $content['user_id']); $this->assertCount(1, $content['tags']); } -- cgit v1.2.3