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:
parent
18696f77fd
commit
39ffaba323
2 changed files with 30 additions and 6 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue