From e633f2f8dff0ae99e7621b5c459474887c965c0e Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 16 Nov 2016 15:10:01 +0100 Subject: [PATCH] add test Signed-off-by: Robin Appelman --- tests/lib/Authentication/Token/DefaultTokenMapperTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/lib/Authentication/Token/DefaultTokenMapperTest.php b/tests/lib/Authentication/Token/DefaultTokenMapperTest.php index 4e5740319ee..8fe0762daad 100644 --- a/tests/lib/Authentication/Token/DefaultTokenMapperTest.php +++ b/tests/lib/Authentication/Token/DefaultTokenMapperTest.php @@ -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 */ -- 2.39.5