1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-16 18:01:38 +00:00

Return null instead of false

This commit is contained in:
Jeremy Benoist 2017-06-28 08:15:06 +02:00
parent 18696f77fd
commit 39ffaba323
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
2 changed files with 30 additions and 6 deletions

View file

@ -800,7 +800,7 @@ class EntryRestControllerTest extends WallabagApiTestCase
$this->assertArrayHasKey($url1, $content);
$this->assertArrayHasKey($url2, $content);
$this->assertSame(2, $content[$url1]);
$this->assertSame(false, $content[$url2]);
$this->assertNull($content[$url2]);
}
public function testGetEntriesExistsWithManyUrlsReturnBool()
@ -815,8 +815,8 @@ class EntryRestControllerTest extends WallabagApiTestCase
$this->assertArrayHasKey($url1, $content);
$this->assertArrayHasKey($url2, $content);
$this->assertEquals(true, $content[$url1]);
$this->assertEquals(false, $content[$url2]);
$this->assertTrue($content[$url1]);
$this->assertFalse($content[$url2]);
}
public function testGetEntriesExistsWhichDoesNotExists()