aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/ApiBundle
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2017-04-29 12:24:27 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2017-05-01 09:26:12 +0200
commit719ba257d3d6495eaa0f4ea749b5aa4740f94dda (patch)
treec09ec7d1034ca7b53dfc95f381de4255b38335e9 /tests/Wallabag/ApiBundle
parenta7abcc7b7a5e3417eff70e2a5993558f83fc5d5a (diff)
downloadwallabag-719ba257d3d6495eaa0f4ea749b5aa4740f94dda.tar.gz
wallabag-719ba257d3d6495eaa0f4ea749b5aa4740f94dda.tar.zst
wallabag-719ba257d3d6495eaa0f4ea749b5aa4740f94dda.zip
Fix tests
Diffstat (limited to 'tests/Wallabag/ApiBundle')
-rw-r--r--tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php8
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']);