mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Added limit
This commit is contained in:
parent
7fa844a349
commit
efd351c98f
5 changed files with 37 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue