]> source.dussan.org Git - nextcloud-server.git/commitdiff
Function accepts only integers 4704/head
authorLukas Reschke <lukas@statuscode.ch>
Thu, 18 May 2017 19:59:22 +0000 (21:59 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Thu, 18 May 2017 19:59:22 +0000 (21:59 +0200)
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
apps/oauth2/tests/Db/AccessTokenMapperTest.php

index 7a7c5fd7b3941ac10143227a0e79403fa7536903..ebc6b55a382126516aa181dbb6ce91e643966a5a 100644 (file)
@@ -56,7 +56,7 @@ class AccessTokenMapperTest extends TestCase {
         * @expectedException \OCA\OAuth2\Exceptions\AccessTokenNotFoundException
         */
        public function testDeleteByClientId() {
-               $this->accessTokenMapper->deleteByClientId('TestId');
+               $this->accessTokenMapper->deleteByClientId(1234);
                $token = new AccessToken();
                $token->setClientId(1234);
                $token->setTokenId((string)time());