fix api properties and typo
This commit is contained in:
parent
3500d4099f
commit
0d3043a29c
@ -126,11 +126,11 @@ class WallabagRestController extends FOSRestController
|
|||||||
$this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags);
|
$this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (true === (bool) $isStarred) {
|
if ($isStarred === 'true') {
|
||||||
$entry->setStarred(true);
|
$entry->setStarred(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (true === (bool) $isArchived) {
|
if ($isArchived === 'true') {
|
||||||
$entry->setArchived(true);
|
$entry->setArchived(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,8 +188,8 @@ class WallabagRestControllerTest extends WallabagApiTestCase
|
|||||||
{
|
{
|
||||||
$this->client->request('POST', '/api/entries.json', array(
|
$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',
|
'url' => 'http://www.lemonde.fr/idees/article/2016/02/08/preserver-la-liberte-d-expression-sur-les-reseaux-sociaux_4861503_3232.html',
|
||||||
'archive' => true,
|
'archive' => 'true',
|
||||||
'starred' => true,
|
'starred' => 'true',
|
||||||
));
|
));
|
||||||
|
|
||||||
$this->assertEquals(200, $this->client->getResponse()->getStatusCode());
|
$this->assertEquals(200, $this->client->getResponse()->getStatusCode());
|
||||||
|
@ -43,7 +43,7 @@ class DeveloperController extends Controller
|
|||||||
$clientForm->handleRequest($request);
|
$clientForm->handleRequest($request);
|
||||||
|
|
||||||
if ($clientForm->isValid()) {
|
if ($clientForm->isValid()) {
|
||||||
$client->setAllowedGrantTypes(array('token', 'authorization_code', 'password','refresh_token'));
|
$client->setAllowedGrantTypes(array('token', 'authorization_code', 'password', 'refresh_token'));
|
||||||
$em->persist($client);
|
$em->persist($client);
|
||||||
$em->flush();
|
$em->flush();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user