diff options
author | Thomas Citharel <tcit@tcit.fr> | 2017-02-24 11:31:31 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2017-02-24 11:31:31 +0100 |
commit | ca9a83ee511a1e9c54d375b76509de699bd2164a (patch) | |
tree | cc337f2cafc054a323ee98f17651eff42851d80e /tests/Wallabag/ApiBundle/Controller | |
parent | abba55cdd653a1915147e8303b873cc0d1e63adc (diff) | |
download | wallabag-ca9a83ee511a1e9c54d375b76509de699bd2164a.tar.gz wallabag-ca9a83ee511a1e9c54d375b76509de699bd2164a.tar.zst wallabag-ca9a83ee511a1e9c54d375b76509de699bd2164a.zip |
return id of article instead of true if entry exists
Diffstat (limited to 'tests/Wallabag/ApiBundle/Controller')
-rw-r--r-- | tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php index 409a8291..dc5160c7 100644 --- a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php +++ b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | |||
@@ -642,7 +642,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
642 | 642 | ||
643 | $content = json_decode($this->client->getResponse()->getContent(), true); | 643 | $content = json_decode($this->client->getResponse()->getContent(), true); |
644 | 644 | ||
645 | $this->assertEquals(true, $content['exists']); | 645 | $this->assertEquals(2, $content['exists']); |
646 | } | 646 | } |
647 | 647 | ||
648 | public function testGetEntriesExistsWithManyUrls() | 648 | public function testGetEntriesExistsWithManyUrls() |
@@ -657,7 +657,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
657 | 657 | ||
658 | $this->assertArrayHasKey($url1, $content); | 658 | $this->assertArrayHasKey($url1, $content); |
659 | $this->assertArrayHasKey($url2, $content); | 659 | $this->assertArrayHasKey($url2, $content); |
660 | $this->assertEquals(true, $content[$url1]); | 660 | $this->assertEquals(2, $content[$url1]); |
661 | $this->assertEquals(false, $content[$url2]); | 661 | $this->assertEquals(false, $content[$url2]); |
662 | } | 662 | } |
663 | 663 | ||