$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]);
$content = json_decode($this->client->getResponse()->getContent(), true);
- $this->assertSame(false, $content['exists']);
+ $this->assertFalse($content['exists']);
}
public function testGetEntriesExistsWithNoUrl()