File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -368,9 +368,7 @@ public function testRespondToAccessTokenRequest(): void
368
368
$ deviceCodeEntity ->setExpiryDateTime (new DateTimeImmutable ('+1 hour ' ));
369
369
$ deviceCodeEntity ->setClient ($ client );
370
370
371
- $ deviceCodeRepositoryMock ->method ('getDeviceCodeEntityByDeviceCode ' )
372
- ->with ('deviceCodeEntityIdentifier ' )
373
- ->willReturn ($ deviceCodeEntity );
371
+ $ deviceCodeRepositoryMock ->method ('getDeviceCodeEntityByDeviceCode ' )->willReturn ($ deviceCodeEntity );
374
372
375
373
$ scopeRepositoryMock = $ this ->getMockBuilder (ScopeRepositoryInterface::class)->getMock ();
376
374
$ scopeRepositoryMock ->method ('getScopeEntityByIdentifier ' )->willReturn ($ scope );
@@ -390,7 +388,7 @@ public function testRespondToAccessTokenRequest(): void
390
388
$ grant ->setEncryptionKey ($ this ->cryptStub ->getKey ());
391
389
$ grant ->setPrivateKey (new CryptKey ('file:// ' . __DIR__ . '/../Stubs/private.key ' ));
392
390
393
- $ grant ->completeDeviceAuthorizationRequest (' deviceCodeEntityIdentifier ' , 'baz ' , true );
391
+ $ grant ->completeDeviceAuthorizationRequest ($ deviceCodeEntity -> getIdentifier () , 'baz ' , true );
394
392
395
393
$ serverRequest = (new ServerRequest ())->withParsedBody ([
396
394
'grant_type ' => 'urn:ietf:params:oauth:grant-type:device_code ' ,
You can’t perform that action at this time.
0 commit comments