mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
add test
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
e77432783b
commit
e633f2f8df
1 changed files with 7 additions and 0 deletions
|
|
@ -173,6 +173,13 @@ class DefaultTokenMapperTest extends TestCase {
|
|||
$this->assertEquals($token, $dbToken);
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OCP\AppFramework\Db\DoesNotExistException
|
||||
*/
|
||||
public function testGetTokenByIdNotFound() {
|
||||
$this->mapper->getTokenById(-1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OCP\AppFramework\Db\DoesNotExistException
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue