Skip to content

Commit 19d13f5

Browse files
committed
Merge remote-tracking branch 'origin/AC-2926' into Hammer_QaulityBacklog_GraphQL_24052022
2 parents 0a5deef + adcdfca commit 19d13f5

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

app/code/Magento/AdobeIms/Model/GetAccessToken.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ public function execute(int $adminUserId = null): ?string
5555
{
5656
try {
5757
$adminUserId = $adminUserId ?? (int) $this->userContext->getUserId();
58-
return $this->encryptor->decrypt(
59-
$this->userProfileRepository->getByUserId($adminUserId)->getAccessToken()
60-
);
58+
return $this->userProfileRepository->getByUserId($adminUserId)->getAccessToken();
6159
} catch (NoSuchEntityException $exception) {
6260
return null;
6361
}

app/code/Magento/AdobeIms/Test/Unit/Model/GetAccessTokenTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,6 @@ public function testExecute(?string $token): void
7272
->willReturn($userProfileMock);
7373
$userProfileMock->expects($this->once())->method('getAccessToken')->willReturn($token);
7474

75-
$decryptedToken = $token ?? '';
76-
77-
$this->encryptor->expects($this->once())
78-
->method('decrypt')
79-
->with($token)
80-
->willReturn($decryptedToken);
81-
8275
$this->assertEquals($token, $this->getAccessToken->execute());
8376
}
8477

0 commit comments

Comments
 (0)