diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-06-28 08:15:06 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-06-28 08:15:06 +0200 |
commit | 39ffaba3232b6378f47883615c58a9ffba668af3 (patch) | |
tree | 503e5d360ba4b5e3845a30a814737ae9e8003467 /tests/Wallabag | |
parent | 18696f77fdc76f7055d84460d459051a6bb7253a (diff) | |
download | wallabag-39ffaba3232b6378f47883615c58a9ffba668af3.tar.gz wallabag-39ffaba3232b6378f47883615c58a9ffba668af3.tar.zst wallabag-39ffaba3232b6378f47883615c58a9ffba668af3.zip |
Return null instead of false
Diffstat (limited to 'tests/Wallabag')
-rw-r--r-- | tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php index dc21bd32..c0391d87 100644 --- a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php +++ b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | |||
@@ -800,7 +800,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
800 | $this->assertArrayHasKey($url1, $content); | 800 | $this->assertArrayHasKey($url1, $content); |
801 | $this->assertArrayHasKey($url2, $content); | 801 | $this->assertArrayHasKey($url2, $content); |
802 | $this->assertSame(2, $content[$url1]); | 802 | $this->assertSame(2, $content[$url1]); |
803 | $this->assertSame(false, $content[$url2]); | 803 | $this->assertNull($content[$url2]); |
804 | } | 804 | } |
805 | 805 | ||
806 | public function testGetEntriesExistsWithManyUrlsReturnBool() | 806 | public function testGetEntriesExistsWithManyUrlsReturnBool() |
@@ -815,8 +815,8 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
815 | 815 | ||
816 | $this->assertArrayHasKey($url1, $content); | 816 | $this->assertArrayHasKey($url1, $content); |
817 | $this->assertArrayHasKey($url2, $content); | 817 | $this->assertArrayHasKey($url2, $content); |
818 | $this->assertEquals(true, $content[$url1]); | 818 | $this->assertTrue($content[$url1]); |
819 | $this->assertEquals(false, $content[$url2]); | 819 | $this->assertFalse($content[$url2]); |
820 | } | 820 | } |
821 | 821 | ||
822 | public function testGetEntriesExistsWhichDoesNotExists() | 822 | public function testGetEntriesExistsWhichDoesNotExists() |