Skip to content

Commit 63045d1

Browse files
authored
LYNX-815: Introduce getExternalCustomerToken mutation
1 parent a6e7fde commit 63045d1

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

dev/tests/integration/testsuite/Magento/GraphQl/App/State/GraphQlStateDiff.php

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2025 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -193,7 +193,7 @@ private function request(
193193
$response = $this->doRequest($query, $authInfo);
194194
$this->objectManagerForTest->_resetState();
195195
$this->comparator->rememberObjectsStateAfter($firstRequest);
196-
$result = $this->comparator->compareBetweenRequests($operationName);
196+
$result = $this->handleRequestProperties($this->comparator->compareBetweenRequests($operationName));
197197
$test->assertEmpty(
198198
$result,
199199
sprintf(
@@ -202,7 +202,7 @@ private function request(
202202
var_export($result, true)
203203
)
204204
);
205-
$result = $this->comparator->compareConstructedAgainstCurrent($operationName);
205+
$result = $this->handleRequestProperties($this->comparator->compareConstructedAgainstCurrent($operationName));
206206
$test->assertEmpty(
207207
$result,
208208
sprintf(
@@ -325,4 +325,18 @@ public function getResetPasswordToken(string $email): string
325325
$customerSecure = $customerRegistry->retrieveSecureData(1);
326326
return $customerSecure->getRpToken();
327327
}
328+
329+
/**
330+
* Handle request properties for sslOffloadHeader
331+
*
332+
* @param array $result
333+
* @return array
334+
*/
335+
public function handleRequestProperties(array $result): array
336+
{
337+
if (isset($result['Magento\Framework\Webapi\Request']['properties']['sslOffloadHeader'])) {
338+
unset($result['Magento\Framework\Webapi\Request']);
339+
}
340+
return $result;
341+
}
328342
}

0 commit comments

Comments
 (0)