diff options
Diffstat (limited to 'tests/Wallabag')
-rw-r--r-- | tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php index 64c24a2d..b732a8be 100644 --- a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php +++ b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | |||
@@ -774,7 +774,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
774 | { | 774 | { |
775 | $list = [ | 775 | $list = [ |
776 | 'http://www.lemonde.fr/musiques/article/2017/04/23/loin-de-la-politique-le-printemps-de-bourges-retombe-en-enfance_5115862_1654986.html', | 776 | 'http://www.lemonde.fr/musiques/article/2017/04/23/loin-de-la-politique-le-printemps-de-bourges-retombe-en-enfance_5115862_1654986.html', |
777 | 'http://0.0.0.0/entry6', | 777 | 'http://0.0.0.0/entry1', |
778 | ]; | 778 | ]; |
779 | 779 | ||
780 | $this->client->request('POST', '/api/entries/lists?urls='.json_encode($list)); | 780 | $this->client->request('POST', '/api/entries/lists?urls='.json_encode($list)); |
@@ -787,13 +787,13 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
787 | $this->assertEquals('http://www.lemonde.fr/musiques/article/2017/04/23/loin-de-la-politique-le-printemps-de-bourges-retombe-en-enfance_5115862_1654986.html', $content[0]['url']); | 787 | $this->assertEquals('http://www.lemonde.fr/musiques/article/2017/04/23/loin-de-la-politique-le-printemps-de-bourges-retombe-en-enfance_5115862_1654986.html', $content[0]['url']); |
788 | 788 | ||
789 | $this->assertInternalType('int', $content[1]['entry']); | 789 | $this->assertInternalType('int', $content[1]['entry']); |
790 | $this->assertEquals('http://0.0.0.0/entry6', $content[1]['url']); | 790 | $this->assertEquals('http://0.0.0.0/entry1', $content[1]['url']); |
791 | } | 791 | } |
792 | 792 | ||
793 | public function testDeleteEntriesListAction() | 793 | public function testDeleteEntriesListAction() |
794 | { | 794 | { |
795 | $list = [ | 795 | $list = [ |
796 | 'http://0.0.0.0/entry2', | 796 | 'http://www.lemonde.fr/musiques/article/2017/04/23/loin-de-la-politique-le-printemps-de-bourges-retombe-en-enfance_5115862_1654986.html', |
797 | 'http://0.0.0.0/entry3', | 797 | 'http://0.0.0.0/entry3', |
798 | ]; | 798 | ]; |
799 | 799 | ||
@@ -804,7 +804,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
804 | $content = json_decode($this->client->getResponse()->getContent(), true); | 804 | $content = json_decode($this->client->getResponse()->getContent(), true); |
805 | 805 | ||
806 | $this->assertTrue($content[0]['entry']); | 806 | $this->assertTrue($content[0]['entry']); |
807 | $this->assertEquals('http://0.0.0.0/entry2', $content[0]['url']); | 807 | $this->assertEquals('http://www.lemonde.fr/musiques/article/2017/04/23/loin-de-la-politique-le-printemps-de-bourges-retombe-en-enfance_5115862_1654986.html', $content[0]['url']); |
808 | 808 | ||
809 | $this->assertFalse($content[1]['entry']); | 809 | $this->assertFalse($content[1]['entry']); |
810 | $this->assertEquals('http://0.0.0.0/entry3', $content[1]['url']); | 810 | $this->assertEquals('http://0.0.0.0/entry3', $content[1]['url']); |