Skip to content

Commit bab3a1b

Browse files
committed
B2B-2259: customAttributeMetadata GraphQl query has no cache identity
- Static fixes
1 parent 35abf0b commit bab3a1b

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQl/Client.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,11 @@ public function get(string $query, array $variables = [], string $operationName
101101
}
102102

103103
/**
104-
* Process response from GraphQl server
104+
* Process response from GraphQL server.
105105
*
106106
* @param string $response
107+
* @param array $responseHeaders
108+
* @param array $responseCookies
107109
* @return mixed
108110
* @throws \Exception
109111
*/
@@ -196,10 +198,13 @@ public function postWithResponseHeaders(
196198
}
197199

198200
/**
199-
* Process errors
201+
* Process errors.
200202
*
201-
* @param array $responseBodyArray
202-
* @throws \Exception
203+
* @param $responseBodyArray
204+
* @param array $responseHeaders
205+
* @param array $responseCookies
206+
* @return void
207+
* @throws ResponseContainsErrorsException
203208
*/
204209
private function processErrors($responseBodyArray, array $responseHeaders = [], array $responseCookies = [])
205210
{

dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQl/ResponseContainsErrorsException.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace Magento\TestFramework\TestCase\GraphQl;
99

1010
/**
11-
* Response contains errors exception
11+
* Exception thrown when GraphQL response contains errors.
1212
*/
1313
class ResponseContainsErrorsException extends \Exception
1414
{
@@ -32,6 +32,8 @@ class ResponseContainsErrorsException extends \Exception
3232
* @param array $responseData
3333
* @param \Exception|null $cause
3434
* @param int $code
35+
* @param array $responseHeaders
36+
* @param array $responseCookies
3537
*/
3638
public function __construct(
3739
string $message,

0 commit comments

Comments
 (0)