mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-31 07:47:28 +01:00
Add test when url doesn’t exist
This commit is contained in:
parent
6273fefd5d
commit
55551e332c
@ -695,4 +695,15 @@ class WallabagRestControllerTest extends WallabagApiTestCase
|
||||
|
||||
$this->assertEquals(true, $content['exists']);
|
||||
}
|
||||
|
||||
public function testGetEntriesExistsWhichDoesNotExists()
|
||||
{
|
||||
$this->client->request('GET', '/api/entries/exists?url=http://google.com/entry2');
|
||||
|
||||
$this->assertEquals(200, $this->client->getResponse()->getStatusCode());
|
||||
|
||||
$content = json_decode($this->client->getResponse()->getContent(), true);
|
||||
|
||||
$this->assertEquals(false, $content['exists']);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user