Skip to content

Commit 56eac4d

Browse files
committed
B2B-2530: Unskip GraphQL cache tests skipped due to DEVOPS-4924
- Adding new Static fixes
1 parent fbf52d0 commit 56eac4d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CacheTagTest extends GraphQLPageCacheAbstract
2323
* @magentoConfigFixture default/system/full_page_cache/caching_application 2
2424
* @magentoApiDataFixture Magento/Catalog/_files/multiple_products.php
2525
*/
26-
public function testCacheTagsAndCacheDebugHeaderForProducts()
26+
public function testCacheHeaderForProducts()
2727
{
2828
$productSku='simple2';
2929
$query
@@ -64,14 +64,14 @@ public function testCacheTagsAndCacheDebugHeaderForProducts()
6464
}
6565

6666
/**
67-
* Test if cache debug for categories are generated properly
67+
* Test if cache for categories are generated properly
6868
*
6969
* Also tests the use case for cache invalidation
7070
*
7171
* @magentoConfigFixture default/system/full_page_cache/caching_application 2
7272
* @magentoApiDataFixture Magento/Catalog/_files/product_in_multiple_categories.php
7373
*/
74-
public function testCacheTagForCategoriesWithProduct()
74+
public function testCacheHeaderForCategoriesWithProduct()
7575
{
7676
$firstProductSku = 'simple333';
7777
$secondProductSku = 'simple444';
@@ -80,7 +80,6 @@ public function testCacheTagForCategoriesWithProduct()
8080
$productRepository = ObjectManager::getInstance()->get(ProductRepositoryInterface::class);
8181
/** @var Product $firstProduct */
8282
$firstProduct = $productRepository->get($firstProductSku, false, null, true);
83-
$productRepository->get($secondProductSku, false, null, true);
8483

8584
$product1Query = $this->getProductQuery($firstProductSku);
8685
$product2Query =$this->getProductQuery($secondProductSku);
@@ -90,7 +89,7 @@ public function testCacheTagForCategoriesWithProduct()
9089
$responseMissOnCategoryQuery = $this->graphQlQueryWithResponseHeaders($categoryQuery);
9190
$cacheId = $responseMissOnCategoryQuery['headers'][CacheIdCalculator::CACHE_ID_HEADER];
9291
// 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]);
9493

9594
// Cache-debug header should be a MISS for product 1 on first request
9695
$responseFirstProduct = $this->graphQlQueryWithResponseHeaders($product1Query);

0 commit comments

Comments
 (0)