summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/lib/Authentication/Token/DefaultTokenMapperTest.php7
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;