mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
return id of article instead of true if entry exists
This commit is contained in:
parent
abba55cdd6
commit
ca9a83ee51
2 changed files with 4 additions and 4 deletions
|
@ -642,7 +642,7 @@ class EntryRestControllerTest extends WallabagApiTestCase
|
|||
|
||||
$content = json_decode($this->client->getResponse()->getContent(), true);
|
||||
|
||||
$this->assertEquals(true, $content['exists']);
|
||||
$this->assertEquals(2, $content['exists']);
|
||||
}
|
||||
|
||||
public function testGetEntriesExistsWithManyUrls()
|
||||
|
@ -657,7 +657,7 @@ class EntryRestControllerTest extends WallabagApiTestCase
|
|||
|
||||
$this->assertArrayHasKey($url1, $content);
|
||||
$this->assertArrayHasKey($url2, $content);
|
||||
$this->assertEquals(true, $content[$url1]);
|
||||
$this->assertEquals(2, $content[$url1]);
|
||||
$this->assertEquals(false, $content[$url2]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue