We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1048fd commit e2b8238Copy full SHA for e2b8238
dev/tests/api-functional/testsuite/Magento/GraphQl/PageCache/VarnishTest.php
@@ -282,7 +282,14 @@ public function testCacheResultForCustomer()
282
$customerToken = $tokenResponse['body']['generateCustomerToken']['token'];
283
284
// Obtain the X-Magento-Cache-Id from the response
285
- $productResponse = $this->graphQlQueryWithResponseHeaders($query);
+ $productResponse = $this->graphQlQueryWithResponseHeaders(
286
+ $query,
287
+ [],
288
+ '',
289
+ [
290
+ 'Authorization' => 'Bearer ' . $customerToken
291
+ ]
292
+ );
293
$this->assertArrayHasKey(CacheIdCalculator::CACHE_ID_HEADER, $productResponse['headers']);
294
295
// If no product is returned, we do not test empty response
0 commit comments