Skip to content

Commit e3e7ca4

Browse files
formatting
1 parent bfb3c24 commit e3e7ca4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/Grant/DeviceCodeGrantTest.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,7 @@ public function testRespondToAccessTokenRequest(): void
368368
$deviceCodeEntity->setExpiryDateTime(new DateTimeImmutable('+1 hour'));
369369
$deviceCodeEntity->setClient($client);
370370

371-
$deviceCodeRepositoryMock->method('getDeviceCodeEntityByDeviceCode')
372-
->with('deviceCodeEntityIdentifier')
373-
->willReturn($deviceCodeEntity);
371+
$deviceCodeRepositoryMock->method('getDeviceCodeEntityByDeviceCode')->willReturn($deviceCodeEntity);
374372

375373
$scopeRepositoryMock = $this->getMockBuilder(ScopeRepositoryInterface::class)->getMock();
376374
$scopeRepositoryMock->method('getScopeEntityByIdentifier')->willReturn($scope);
@@ -390,7 +388,7 @@ public function testRespondToAccessTokenRequest(): void
390388
$grant->setEncryptionKey($this->cryptStub->getKey());
391389
$grant->setPrivateKey(new CryptKey('file://' . __DIR__ . '/../Stubs/private.key'));
392390

393-
$grant->completeDeviceAuthorizationRequest('deviceCodeEntityIdentifier', 'baz', true);
391+
$grant->completeDeviceAuthorizationRequest($deviceCodeEntity->getIdentifier(), 'baz', true);
394392

395393
$serverRequest = (new ServerRequest())->withParsedBody([
396394
'grant_type' => 'urn:ietf:params:oauth:grant-type:device_code',

0 commit comments

Comments
 (0)