@@ -23,7 +23,7 @@ class CacheTagTest extends GraphQLPageCacheAbstract
23
23
* @magentoConfigFixture default/system/full_page_cache/caching_application 2
24
24
* @magentoApiDataFixture Magento/Catalog/_files/multiple_products.php
25
25
*/
26
- public function testCacheTagsAndCacheDebugHeaderForProducts ()
26
+ public function testCacheHeaderForProducts ()
27
27
{
28
28
$ productSku ='simple2 ' ;
29
29
$ query
@@ -64,14 +64,14 @@ public function testCacheTagsAndCacheDebugHeaderForProducts()
64
64
}
65
65
66
66
/**
67
- * Test if cache debug for categories are generated properly
67
+ * Test if cache for categories are generated properly
68
68
*
69
69
* Also tests the use case for cache invalidation
70
70
*
71
71
* @magentoConfigFixture default/system/full_page_cache/caching_application 2
72
72
* @magentoApiDataFixture Magento/Catalog/_files/product_in_multiple_categories.php
73
73
*/
74
- public function testCacheTagForCategoriesWithProduct ()
74
+ public function testCacheHeaderForCategoriesWithProduct ()
75
75
{
76
76
$ firstProductSku = 'simple333 ' ;
77
77
$ secondProductSku = 'simple444 ' ;
@@ -80,7 +80,6 @@ public function testCacheTagForCategoriesWithProduct()
80
80
$ productRepository = ObjectManager::getInstance ()->get (ProductRepositoryInterface::class);
81
81
/** @var Product $firstProduct */
82
82
$ firstProduct = $ productRepository ->get ($ firstProductSku , false , null , true );
83
- $ productRepository ->get ($ secondProductSku , false , null , true );
84
83
85
84
$ product1Query = $ this ->getProductQuery ($ firstProductSku );
86
85
$ product2Query =$ this ->getProductQuery ($ secondProductSku );
@@ -90,7 +89,7 @@ public function testCacheTagForCategoriesWithProduct()
90
89
$ responseMissOnCategoryQuery = $ this ->graphQlQueryWithResponseHeaders ($ categoryQuery );
91
90
$ cacheId = $ responseMissOnCategoryQuery ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
92
91
// Verify we obtain a cache MISS the first time we search the cache using this X-Magento-Cache-Id
93
- $ this ->assertCacheMissAndReturnResponse ($ categoryQuery , [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
92
+ $ this ->assertCacheMissAndReturnResponse ($ categoryQuery , [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
94
93
95
94
// Cache-debug header should be a MISS for product 1 on first request
96
95
$ responseFirstProduct = $ this ->graphQlQueryWithResponseHeaders ($ product1Query );
0 commit comments