]> source.dussan.org Git - nextcloud-server.git/commitdiff
add test 719/head
authorRobin Appelman <robin@icewind.nl>
Wed, 16 Nov 2016 14:10:01 +0000 (15:10 +0100)
committerRobin Appelman <robin@icewind.nl>
Wed, 16 Nov 2016 14:24:33 +0000 (15:24 +0100)
Signed-off-by: Robin Appelman <robin@icewind.nl>
tests/lib/Authentication/Token/DefaultTokenMapperTest.php

index 4e5740319ee5cb9630baa5b7202e8f9cc1cc081f..8fe0762daadfd464eb804a16c0571225fa9305cc 100644 (file)
@@ -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
         */