1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Merge pull request #3362 from sviande/fix_3361_api_warning

Fix #3361 check type for tags in entry repository
This commit is contained in:
Jérémy Benoist 2017-10-18 11:16:50 +02:00 committed by GitHub
commit 91f9bacf73
3 changed files with 9 additions and 2 deletions

View file

@ -308,6 +308,13 @@ class EntryRestControllerTest extends WallabagApiTestCase
$this->assertSame('application/json', $this->client->getResponse()->headers->get('Content-Type'));
}
public function testGetTaggedEntriesWithBadParams()
{
$this->client->request('GET', '/api/entries', ['tags' => ['foo', 'bar']]);
$this->assertSame(200, $this->client->getResponse()->getStatusCode());
}
public function testGetDatedEntries()
{
$this->client->request('GET', '/api/entries', ['since' => 1443274283]);