diff options
author | Robin Appelman <robin@icewind.nl> | 2016-11-16 15:10:01 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-11-16 15:24:33 +0100 |
commit | e633f2f8dff0ae99e7621b5c459474887c965c0e (patch) | |
tree | ecbb58d2207330507d5bb1962437e05984789369 | |
parent | e77432783b0e54033aa827c7dbc20e1d3551a118 (diff) | |
download | nextcloud-server-e633f2f8dff0ae99e7621b5c459474887c965c0e.tar.gz nextcloud-server-e633f2f8dff0ae99e7621b5c459474887c965c0e.zip |
add test
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | tests/lib/Authentication/Token/DefaultTokenMapperTest.php | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ -176,6 +176,13 @@ class DefaultTokenMapperTest extends TestCase { /** * @expectedException \OCP\AppFramework\Db\DoesNotExistException */ + public function testGetTokenByIdNotFound() { + $this->mapper->getTokenById(-1); + } + + /** + * @expectedException \OCP\AppFramework\Db\DoesNotExistException + */ public function testGetInvalidTokenById() { $id = 42; |