use integers for archived/starred status

This commit is contained in:
Thomas Citharel
2016-03-16 20:41:29 +01:00
parent 0d3043a29c
commit 189ef6342a
3 changed files with 46 additions and 22 deletions

View File

@ -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());