1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Added limit

This commit is contained in:
Nicolas Lœuillet 2017-05-01 09:21:59 +02:00
parent 7fa844a349
commit efd351c98f
5 changed files with 37 additions and 0 deletions

View file

@ -809,4 +809,27 @@ class EntryRestControllerTest extends WallabagApiTestCase
$this->assertFalse($content[1]['entry']);
$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 = [
'http://0.0.0.0/entry1',
'http://0.0.0.0/entry1',
'http://0.0.0.0/entry1',
'http://0.0.0.0/entry1',
'http://0.0.0.0/entry1',
'http://0.0.0.0/entry1',
'http://0.0.0.0/entry1',
'http://0.0.0.0/entry1',
'http://0.0.0.0/entry1',
'http://0.0.0.0/entry1',
'http://0.0.0.0/entry1',
];
$this->client->request('POST', '/api/entries/lists?urls='.json_encode($list));
}
}