diff options
Diffstat (limited to 'tests/Wallabag/ApiBundle')
-rw-r--r-- | tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php index 8594ad0b..34a2f894 100644 --- a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php +++ b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | |||
@@ -810,10 +810,6 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
810 | $this->assertEquals('http://0.0.0.0/entry3', $content[1]['url']); | 810 | $this->assertEquals('http://0.0.0.0/entry3', $content[1]['url']); |
811 | } | 811 | } |
812 | 812 | ||
813 | /** | ||
814 | * @expectedException Symfony\Component\Config\Definition\Exception\Exception | ||
815 | * @expectedExceptionMessage API limit reached | ||
816 | */ | ||
817 | public function testLimitBulkAction() | 813 | public function testLimitBulkAction() |
818 | { | 814 | { |
819 | $list = [ | 815 | $list = [ |
@@ -831,5 +827,8 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
831 | ]; | 827 | ]; |
832 | 828 | ||
833 | $this->client->request('POST', '/api/entries/lists?urls='.json_encode($list)); | 829 | $this->client->request('POST', '/api/entries/lists?urls='.json_encode($list)); |
830 | |||
831 | $this->assertEquals(400, $this->client->getResponse()->getStatusCode()); | ||
832 | $this->assertContains('API limit reached', $this->client->getResponse()->getContent()); | ||
834 | } | 833 | } |
835 | } | 834 | } |