Skip to content

Commit e2b8238

Browse files
committed
LYNX-232: Fix for failing Magento\GraphQl\PageCache\VarnishTest::testCacheResultForCustomer WebAPI test
1 parent f1048fd commit e2b8238

File tree

1 file changed

+8
-1
lines changed
  • dev/tests/api-functional/testsuite/Magento/GraphQl/PageCache

1 file changed

+8
-1
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/PageCache/VarnishTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,14 @@ public function testCacheResultForCustomer()
282282
$customerToken = $tokenResponse['body']['generateCustomerToken']['token'];
283283

284284
// Obtain the X-Magento-Cache-Id from the response
285-
$productResponse = $this->graphQlQueryWithResponseHeaders($query);
285+
$productResponse = $this->graphQlQueryWithResponseHeaders(
286+
$query,
287+
[],
288+
'',
289+
[
290+
'Authorization' => 'Bearer ' . $customerToken
291+
]
292+
);
286293
$this->assertArrayHasKey(CacheIdCalculator::CACHE_ID_HEADER, $productResponse['headers']);
287294

288295
// If no product is returned, we do not test empty response

0 commit comments

Comments
 (0)