File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/PageCache Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 13
13
use Magento \TestFramework \ObjectManager ;
14
14
15
15
/**
16
- * Test the cache invalidation for products and categories
16
+ * Test the cache works properly for products and categories
17
17
*/
18
18
class CacheTagTest extends GraphQLPageCacheAbstract
19
19
{
@@ -107,7 +107,10 @@ public function testCacheInvalidationForCategoriesWithProduct()
107
107
108
108
// cache-debug header value should be MISS after updating product1 and reloading the Category
109
109
$ responseMissCategoryAfterProductUpdate = $ this ->graphQlQueryWithResponseHeaders ($ categoryQuery );
110
- $ this ->assertArrayHasKey (CacheIdCalculator::CACHE_ID_HEADER , $ responseMissCategoryAfterProductUpdate ['headers ' ]);
110
+ $ this ->assertArrayHasKey (
111
+ CacheIdCalculator::CACHE_ID_HEADER ,
112
+ $ responseMissCategoryAfterProductUpdate ['headers ' ]
113
+ );
111
114
$ cacheId = $ responseMissCategoryAfterProductUpdate ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
112
115
// Verify we obtain a cache MISS the first time we search the cache using this X-Magento-Cache-Id
113
116
$ this ->assertCacheMissAndReturnResponse ($ categoryQuery , [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
Original file line number Diff line number Diff line change 14
14
use Magento \TestFramework \Helper \Bootstrap ;
15
15
16
16
/**
17
- * Test the cache invalidation for CMS Blocks
17
+ * Test the cache works properly for CMS Blocks
18
18
*/
19
19
class BlockCacheTest extends GraphQLPageCacheAbstract
20
20
{
Original file line number Diff line number Diff line change 14
14
use Magento \TestFramework \Helper \Bootstrap ;
15
15
16
16
/**
17
- * Test the cache invalidation for CMS Pages
17
+ * Test the cache works properly for CMS Pages
18
18
*/
19
19
class PageCacheTest extends GraphQLPageCacheAbstract
20
20
{
@@ -130,7 +130,8 @@ public function testCacheIsInvalidatedOnPageUpdate()
130
130
131
131
$ page100ResponseHitAfterUpdate = $ this ->graphQlQueryWithResponseHeaders ($ page100Query );
132
132
$ this ->assertArrayHasKey (CacheIdCalculator::CACHE_ID_HEADER , $ page100ResponseHitAfterUpdate ['headers ' ]);
133
- $ cacheIdPage100ResponseHitAfterUpdate = $ page100ResponseHitAfterUpdate ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
133
+ $ cacheIdPage100ResponseHitAfterUpdate =
134
+ $ page100ResponseHitAfterUpdate ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
134
135
$ this ->assertCacheHitAndReturnResponse (
135
136
$ page100Query ,
136
137
[CacheIdCalculator::CACHE_ID_HEADER => $ cacheIdPage100ResponseHitAfterUpdate ]
Original file line number Diff line number Diff line change 14
14
use Magento \TestFramework \Helper \Bootstrap ;
15
15
16
16
/**
17
- * Test cache works for url resolver.
17
+ * Test cache works properly for url resolver.
18
18
*/
19
19
class UrlResolverCacheTest extends GraphQLPageCacheAbstract
20
20
{
You can’t perform that action at this time.
0 commit comments