Skip to content

Commit 437ea7c

Browse files
author
Prabhu Ram
committed
Merge branch 'graphql-issue-230' of github.com:magento-honey-badgers/magento2ce into graphql-issue-230
2 parents 7dc85ec + af4b044 commit 437ea7c

File tree

3 files changed

+6
-27
lines changed

3 files changed

+6
-27
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ public function testCacheTagsAndCacheDebugHeaderForProducts()
7777
/**
7878
* Tests if Magento cache tags for categories are generated properly. Also tests the use case for cache invalidation
7979
*
80-
* @magentoApiDataFixture Magento/Catalog/_files/categories.php
80+
* @magentoApiDataFixture Magento/Catalog/_files/product_in_multiple_categories.php
8181
*/
8282
public function testCacheTagFromResponseHeaderForCategoriesWithProduct()
8383
{
8484
$this->markTestSkipped(
8585
'This test will stay skipped until DEVOPS-4924 is resolved'
8686
);
87-
$firstProductSku = 'simple-4';
88-
$secondProductSku = 'simple-5';
89-
$categoryId ='10';
87+
$firstProductSku = 'simple333';
88+
$secondProductSku = 'simple444';
89+
$categoryId ='4';
9090
$categoryQuery
9191
= <<<'QUERY'
9292
query GetCategoryQuery($id: Int!, $pageSize: Int!, $currentPage: Int!) {
@@ -107,7 +107,7 @@ public function testCacheTagFromResponseHeaderForCategoriesWithProduct()
107107
}
108108
QUERY;
109109
$variables =[
110-
'id' => 10,
110+
'id' => 4,
111111
'pageSize'=> 10,
112112
'currentPage' => 1
113113
];

dev/tests/integration/testsuite/Magento/Catalog/_files/categories.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -267,24 +267,3 @@
267267
$product->getSku(),
268268
[10, 11, 12, 13]
269269
);
270-
271-
/** @var $product \Magento\Catalog\Model\Product */
272-
$product = $objectManager->create(\Magento\Catalog\Model\Product::class);
273-
$product->isObjectNew(true);
274-
$product->setTypeId(\Magento\Catalog\Model\Product\Type::TYPE_SIMPLE)
275-
->setAttributeSetId($defaultAttributeSet)
276-
->setStoreId(1)
277-
->setWebsiteIds([1])
278-
->setName('Simple Product Five')
279-
->setSku('simple-5')
280-
->setPrice(10)
281-
->setWeight(18)
282-
->setStockData(['use_config_manage_stock' => 0])
283-
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
284-
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
285-
->save();
286-
287-
$categoryLinkManagement->assignProductToCategories(
288-
$product->getSku(),
289-
[10, 11, 12, 13]
290-
);

dev/tests/integration/testsuite/Magento/Catalog/_files/categories_rollback.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// Remove products
1515
/** @var \Magento\Catalog\Api\ProductRepositoryInterface $productRepository */
1616
$productRepository = $objectManager->create(\Magento\Catalog\Api\ProductRepositoryInterface::class);
17-
$productsToDelete = ['simple', '12345', 'simple-3', 'simple-4','simple-5'];
17+
$productsToDelete = ['simple', '12345', 'simple-3', 'simple-4'];
1818

1919
foreach ($productsToDelete as $sku) {
2020
try {

0 commit comments

Comments
 (0)