X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FApiBundle%2FTests%2FController%2FWallabagRestControllerTest.php;h=6bc7afa66f5fc613d2eefc8b1608a7ced53a3698;hb=189ef6342a3f9befec379c406821ed10730cacd2;hp=2e78d8b2ca9bc6b06879082f11e118649f102d5a;hpb=3500d4099f88f7db22eba42fdb7e8926f1f1cdac;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php b/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php index 2e78d8b2..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 { $this->client->request('POST', '/api/entries.json', array( 'url' => 'http://www.lemonde.fr/idees/article/2016/02/08/preserver-la-liberte-d-expression-sur-les-reseaux-sociaux_4861503_3232.html', - 'archive' => true, - 'starred' => true, + 'archive' => '1', + 'starred' => '1', )); $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); @@ -220,8 +220,8 @@ class WallabagRestControllerTest extends WallabagApiTestCase $this->client->request('PATCH', '/api/entries/'.$entry->getId().'.json', array( 'title' => 'New awesome title', 'tags' => 'new tag '.uniqid(), - 'star' => true, - 'archive' => false, + 'starred' => '1', + 'archive' => '0', )); $this->assertEquals(200, $this->client->getResponse()->getStatusCode());