mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-26 19:11:07 +00:00
Fix #3361 add test
This commit is contained in:
parent
fafdf17117
commit
d03b72f405
1 changed files with 7 additions and 0 deletions
|
@ -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]);
|
||||||
|
|
Loading…
Reference in a new issue