summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-11-16 15:10:01 +0100
committerRobin Appelman <robin@icewind.nl>2016-11-16 15:24:33 +0100
commite633f2f8dff0ae99e7621b5c459474887c965c0e (patch)
treeecbb58d2207330507d5bb1962437e05984789369
parente77432783b0e54033aa827c7dbc20e1d3551a118 (diff)
downloadnextcloud-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.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;