]> source.dussan.org Git - nextcloud-server.git/commitdiff
Delete token after usage in test
authorLukas Reschke <lukas@statuscode.ch>
Thu, 18 May 2017 18:54:42 +0000 (20:54 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Thu, 18 May 2017 18:58:05 +0000 (20:58 +0200)
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
apps/oauth2/tests/Db/AccessTokenMapperTest.php

index 58b36b1c240705804d368d17169b2553adb8a8d6..7a7c5fd7b3941ac10143227a0e79403fa7536903 100644 (file)
@@ -49,6 +49,7 @@ class AccessTokenMapperTest extends TestCase {
 
                $result = $this->accessTokenMapper->getByCode('MyAwesomeToken');
                $this->assertEquals($token, $result);
+               $this->accessTokenMapper->delete($token);
        }
 
        /**