Skip to content

Commit 9a82db0

Browse files
committed
GraphQL-600: Integration test for simple Products query - test for cache tag and cache debug headers
- Fixed review comments
1 parent 59e1ff5 commit 9a82db0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dev/tests/integration/testsuite/Magento/GraphQlCache/Controller/Catalog/ProductsCacheTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,10 @@ public function testToCheckRequestNoTagsForProducts(): void
115115
$result = $this->graphqlController->dispatch($this->request);
116116
/** @var \Magento\Framework\App\Response\Http $response */
117117
$response = $this->objectManager->get(\Magento\Framework\App\Response\Http::class);
118-
/** @var $registry \Magento\Framework\Registry */
119118
$result->renderResult($response);
120119
$this->assertEquals('MISS', $response->getHeader('X-Magento-Cache-Debug')->getFieldValue());
121120
$actualCacheTags = explode(',', $response->getHeader('X-Magento-Tags')->getFieldValue());
122-
$expectedCacheTags = [ 'FPC'];
121+
$expectedCacheTags = ['FPC'];
123122
$this->assertEquals($expectedCacheTags, $actualCacheTags);
124123
}
125124
}

0 commit comments

Comments
 (0)