aboutsummaryrefslogtreecommitdiffstats
path: root/apps/oauth2/tests/Db
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-05-18 21:59:22 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-05-18 21:59:22 +0200
commitf4189699e7348615eeb0e528bc5395d818d301ea (patch)
tree32b99eda10bd6a210adaee075a733728a7abb8f2 /apps/oauth2/tests/Db
parentb8de3f40ee8822cdd7e9d6fbf3f9983cc214d2e1 (diff)
downloadnextcloud-server-f4189699e7348615eeb0e528bc5395d818d301ea.tar.gz
nextcloud-server-f4189699e7348615eeb0e528bc5395d818d301ea.zip
Function accepts only integers
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/oauth2/tests/Db')
-rw-r--r--apps/oauth2/tests/Db/AccessTokenMapperTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/oauth2/tests/Db/AccessTokenMapperTest.php b/apps/oauth2/tests/Db/AccessTokenMapperTest.php
index 7a7c5fd7b39..ebc6b55a382 100644
--- a/apps/oauth2/tests/Db/AccessTokenMapperTest.php
+++ b/apps/oauth2/tests/Db/AccessTokenMapperTest.php
@@ -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());