Skip to content

Commit b160fca

Browse files
committed
B2B-2206: [Spike] Find All Areas in GraphQL That Break When Session is Disabled
1 parent e559184 commit b160fca

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Client
1919
/**#@+
2020
* GraphQL HTTP method
2121
*/
22-
const GRAPHQL_METHOD_POST = 'POST';
22+
public const GRAPHQL_METHOD_POST = 'POST';
2323
/**#@-*/
2424

2525
/** @var CurlClient */
@@ -87,7 +87,7 @@ public function get(string $query, array $variables = [], string $operationName
8787
$requestArray = [
8888
'query' => $query,
8989
'variables' => $variables ? $this->json->jsonEncode($variables) : null,
90-
'operationName' => $operationName ?? null
90+
'operationName' => $operationName ? $operationName : null
9191
];
9292
array_filter($requestArray);
9393

@@ -133,6 +133,8 @@ private function processResponse(string $response)
133133
* @param array $variables
134134
* @param string $operationName
135135
* @param array $headers
136+
* @param bool $flushCookies
137+
*
136138
* @return array
137139
*/
138140
public function getWithResponseHeaders(
@@ -165,6 +167,8 @@ public function getWithResponseHeaders(
165167
* @param array $variables
166168
* @param string $operationName
167169
* @param array $headers
170+
* @param bool $flushCookies
171+
*
168172
* @return array
169173
*/
170174
public function postWithResponseHeaders(

dev/tests/api-functional/framework/Magento/TestFramework/TestCase/HttpClient/CurlClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
class CurlClient
1212
{
13-
const EMPTY_REQUEST_BODY = 'Empty body';
13+
public const EMPTY_REQUEST_BODY = 'Empty body';
1414

1515
/**
1616
* Perform HTTP GET request

0 commit comments

Comments
 (0)