Function accepts only integers

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Lukas Reschke 2017-05-18 21:59:22 +02:00
parent b8de3f40ee
commit f4189699e7
No known key found for this signature in database
GPG key ID: B9F6980CF6E759B1

View 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());