mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-24 07:38:11 +00:00
Add test when url doesn’t exist
This commit is contained in:
parent
6273fefd5d
commit
55551e332c
1 changed files with 11 additions and 0 deletions
|
@ -695,4 +695,15 @@ class WallabagRestControllerTest extends WallabagApiTestCase
|
||||||
|
|
||||||
$this->assertEquals(true, $content['exists']);
|
$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…
Reference in a new issue