Skip to content

Commit 28de998

Browse files
committed
B2B-2530: Unskip GraphQL cache tests skipped due to DEVOPS-4924
- Fixed comments on the tests
1 parent 56eac4d commit 28de998

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
use Magento\TestFramework\ObjectManager;
1414

1515
/**
16-
* Test the caching works properly for products and categories
16+
* Test the cache invalidation for products and categories
1717
*/
1818
class CacheTagTest extends GraphQLPageCacheAbstract
1919
{
2020
/**
21-
* Test if Magento debug headers for products are generated properly
21+
* Test if cache invalidation for products
2222
*
2323
* @magentoConfigFixture default/system/full_page_cache/caching_application 2
2424
* @magentoApiDataFixture Magento/Catalog/_files/multiple_products.php
2525
*/
26-
public function testCacheHeaderForProducts()
26+
public function testCacheInvalidationForProducts()
2727
{
2828
$productSku='simple2';
2929
$query
@@ -64,14 +64,12 @@ public function testCacheHeaderForProducts()
6464
}
6565

6666
/**
67-
* Test if cache for categories are generated properly
68-
*
69-
* Also tests the use case for cache invalidation
67+
* Test if cache is invalidated properly for categories
7068
*
7169
* @magentoConfigFixture default/system/full_page_cache/caching_application 2
7270
* @magentoApiDataFixture Magento/Catalog/_files/product_in_multiple_categories.php
7371
*/
74-
public function testCacheHeaderForCategoriesWithProduct()
72+
public function testCacheInvalidationForCategoriesWithProduct()
7573
{
7674
$firstProductSku = 'simple333';
7775
$secondProductSku = 'simple444';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Magento\TestFramework\Helper\Bootstrap;
1515

1616
/**
17-
* Test the caching works properly for CMS Blocks
17+
* Test the cache invalidation for CMS Blocks
1818
*/
1919
class BlockCacheTest extends GraphQLPageCacheAbstract
2020
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Magento\TestFramework\Helper\Bootstrap;
1515

1616
/**
17-
* Test the caching works properly for CMS Pages
17+
* Test the cache invalidation for CMS Pages
1818
*/
1919
class PageCacheTest extends GraphQLPageCacheAbstract
2020
{

dev/tests/api-functional/testsuite/Magento/GraphQl/PageCache/Quote/Guest/CartCacheTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
class CartCacheTest extends GraphQLPageCacheAbstract
1919
{
2020
/**
21+
* Check if the cart is not cached
22+
*
2123
* @magentoConfigFixture default/system/full_page_cache/caching_application 2
2224
*/
2325
public function testCartIsNotCached()

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
use Magento\TestFramework\Helper\Bootstrap;
1515

1616
/**
17-
* Test caching works for url resolver.
17+
* Test cache invalidation for url resolver.
1818
*/
1919
class UrlResolverCacheTest extends GraphQLPageCacheAbstract
2020
{
2121
/**
22-
* Tests cache debug headers are correct for product urlResolver
22+
* Tests cache invalidation for product urlResolver
2323
*
2424
* @magentoConfigFixture default/system/full_page_cache/caching_application 2
2525
* @magentoApiDataFixture Magento/CatalogUrlRewrite/_files/product_with_category.php
2626
*/
27-
public function testCacheTagsForProducts()
27+
public function testUrlResolverCachingForProducts()
2828
{
2929
$urlKey = 'p002.html';
3030
$urlResolverQuery = $this->getUrlResolverQuery($urlKey);
@@ -47,12 +47,12 @@ public function testCacheTagsForProducts()
4747
}
4848

4949
/**
50-
* Tests cache debug headers are correct for category urlResolver
50+
* Tests cache invalidation for category urlResolver
5151
*
5252
* @magentoConfigFixture default/system/full_page_cache/caching_application 2
5353
* @magentoApiDataFixture Magento/CatalogUrlRewrite/_files/product_with_category.php
5454
*/
55-
public function testCacheTagsForCategory()
55+
public function testUrlResolverCachingForCategory()
5656
{
5757
$categoryUrlKey = 'cat-1.html';
5858
$query = $this->getUrlResolverQuery($categoryUrlKey);
@@ -75,7 +75,7 @@ public function testCacheTagsForCategory()
7575
}
7676

7777
/**
78-
* Test Cache debug headers are correct for cms page url resolver
78+
* Test cache invalidation for cms page url resolver
7979
*
8080
* @magentoConfigFixture default/system/full_page_cache/caching_application 2
8181
* @magentoApiDataFixture Magento/Cms/_files/pages.php

0 commit comments

Comments
 (0)