aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Tests/Controller
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2016-03-16 20:41:29 +0100
committerThomas Citharel <tcit@tcit.fr>2016-03-16 22:22:12 +0100
commit189ef6342a3f9befec379c406821ed10730cacd2 (patch)
tree2def34d5dfb903889c457c85a686726fc6911ec1 /src/Wallabag/ApiBundle/Tests/Controller
parent0d3043a29c4aba541d6a18c2d5cc7ebffc6ddc78 (diff)
downloadwallabag-189ef6342a3f9befec379c406821ed10730cacd2.tar.gz
wallabag-189ef6342a3f9befec379c406821ed10730cacd2.tar.zst
wallabag-189ef6342a3f9befec379c406821ed10730cacd2.zip
use integers for archived/starred status
Diffstat (limited to 'src/Wallabag/ApiBundle/Tests/Controller')
-rw-r--r--src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php b/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
index f5a9748c..6bc7afa6 100644
--- a/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
+++ b/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
@@ -188,8 +188,8 @@ class WallabagRestControllerTest extends WallabagApiTestCase
188 { 188 {
189 $this->client->request('POST', '/api/entries.json', array( 189 $this->client->request('POST', '/api/entries.json', array(
190 'url' => 'http://www.lemonde.fr/idees/article/2016/02/08/preserver-la-liberte-d-expression-sur-les-reseaux-sociaux_4861503_3232.html', 190 'url' => 'http://www.lemonde.fr/idees/article/2016/02/08/preserver-la-liberte-d-expression-sur-les-reseaux-sociaux_4861503_3232.html',
191 'archive' => 'true', 191 'archive' => '1',
192 'starred' => 'true', 192 'starred' => '1',
193 )); 193 ));
194 194
195 $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); 195 $this->assertEquals(200, $this->client->getResponse()->getStatusCode());
@@ -220,8 +220,8 @@ class WallabagRestControllerTest extends WallabagApiTestCase
220 $this->client->request('PATCH', '/api/entries/'.$entry->getId().'.json', array( 220 $this->client->request('PATCH', '/api/entries/'.$entry->getId().'.json', array(
221 'title' => 'New awesome title', 221 'title' => 'New awesome title',
222 'tags' => 'new tag '.uniqid(), 222 'tags' => 'new tag '.uniqid(),
223 'star' => true, 223 'starred' => '1',
224 'archive' => false, 224 'archive' => '0',
225 )); 225 ));
226 226
227 $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); 227 $this->assertEquals(200, $this->client->getResponse()->getStatusCode());