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:
parent
efd351c98f
commit
72db15ca5d
2 changed files with 97 additions and 106 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue