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

Little refacto and send 400 on reaching urls limit

This commit is contained in:
Jeremy Benoist 2017-05-05 12:05:50 +02:00
parent efd351c98f
commit 72db15ca5d
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
2 changed files with 97 additions and 106 deletions

View file

@ -810,10 +810,6 @@ class EntryRestControllerTest extends WallabagApiTestCase
$this->assertEquals('http://0.0.0.0/entry3', $content[1]['url']);
}
/**
* @expectedException Symfony\Component\Config\Definition\Exception\Exception
* @expectedExceptionMessage API limit reached
*/
public function testLimitBulkAction()
{
$list = [
@ -831,5 +827,8 @@ class EntryRestControllerTest extends WallabagApiTestCase
];
$this->client->request('POST', '/api/entries/lists?urls='.json_encode($list));
$this->assertEquals(400, $this->client->getResponse()->getStatusCode());
$this->assertContains('API limit reached', $this->client->getResponse()->getContent());
}
}