Skip to content

Commit 1360662

Browse files
committed
GraphQL-597: Test coverage for cart-not cached test
1 parent 49cca53 commit 1360662

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function testCacheTagForCategoriesWithProduct()
151151
/**
152152
* Get Product query
153153
*
154-
* @param string $productSku
154+
* @param string $productSku
155155
* @return string
156156
*/
157157
private function getProductQuery(string $productSku): string

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Magento\TestFramework\TestCase\GraphQlAbstract;
1111

1212
/**
13-
* Test cart queries are note cached
13+
* Test cart queries are not cached
1414
*
1515
* @magentoApiDataFixture Magento/Catalog/_files/products.php
1616
*/
@@ -67,11 +67,11 @@ private function createEmptyCart(): string
6767
/**
6868
* Add simple product to the cart using the maskedQuoteId
6969
*
70-
* @param $maskedCartId
71-
* @param $qty
72-
* @param $sku
70+
* @param string $maskedCartId
71+
* @param int $qty
72+
* @param string $sku
7373
*/
74-
private function addSimpleProductToCart($maskedCartId, $qty, $sku)
74+
private function addSimpleProductToCart(string $maskedCartId, int $qty, string $sku): void
7575
{
7676
$addProductToCartQuery =
7777
<<<QUERY

0 commit comments

Comments
 (0)