Fix #3361 add test

This commit is contained in:
Sébastien Viande 2017-09-26 11:29:09 +02:00 committed by Sébastien Viande
parent fafdf17117
commit d03b72f405

View File

@ -308,6 +308,13 @@ class EntryRestControllerTest extends WallabagApiTestCase
$this->assertSame('application/json', $this->client->getResponse()->headers->get('Content-Type')); $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() public function testGetDatedEntries()
{ {
$this->client->request('GET', '/api/entries', ['since' => 1443274283]); $this->client->request('GET', '/api/entries', ['since' => 1443274283]);