From 7d4465670326ad09d15985091d40834f6ec040f9 Mon Sep 17 00:00:00 2001
From: Pavel Bystritsky
Date: Fri, 5 Jan 2018 18:08:22 +0200
Subject: [PATCH 001/240] magento/magento2#12970: Can't add grouped product,
with out of stock sub product, to cart.
---
.../Model/Product/Type/Grouped.php | 2 +-
.../_files/product_virtual_out_of_stock.php | 20 ++
.../product_virtual_out_of_stock_rollback.php | 26 +++
.../Model/Product/Type/GroupedTest.php | 214 ++++++++++++++++--
.../product_grouped_with_out_of_stock.php | 75 ++++++
...uct_grouped_with_out_of_stock_rollback.php | 10 +
6 files changed, 331 insertions(+), 16 deletions(-)
create mode 100644 dev/tests/integration/testsuite/Magento/Catalog/_files/product_virtual_out_of_stock.php
create mode 100644 dev/tests/integration/testsuite/Magento/Catalog/_files/product_virtual_out_of_stock_rollback.php
create mode 100644 dev/tests/integration/testsuite/Magento/GroupedProduct/_files/product_grouped_with_out_of_stock.php
create mode 100644 dev/tests/integration/testsuite/Magento/GroupedProduct/_files/product_grouped_with_out_of_stock_rollback.php
diff --git a/app/code/Magento/GroupedProduct/Model/Product/Type/Grouped.php b/app/code/Magento/GroupedProduct/Model/Product/Type/Grouped.php
index e1c97c8912cf8..c97a62d9df456 100644
--- a/app/code/Magento/GroupedProduct/Model/Product/Type/Grouped.php
+++ b/app/code/Magento/GroupedProduct/Model/Product/Type/Grouped.php
@@ -341,7 +341,7 @@ protected function getProductInfo(\Magento\Framework\DataObject $buyRequest, $pr
if ($isStrictProcessMode && !$subProduct->getQty()) {
return __('Please specify the quantity of product(s).')->render();
}
- $productsInfo[$subProduct->getId()] = intval($subProduct->getQty());
+ $productsInfo[$subProduct->getId()] = $subProduct->isSalable() ? intval($subProduct->getQty()) : 0;
}
}
diff --git a/dev/tests/integration/testsuite/Magento/Catalog/_files/product_virtual_out_of_stock.php b/dev/tests/integration/testsuite/Magento/Catalog/_files/product_virtual_out_of_stock.php
new file mode 100644
index 0000000000000..cff2e83ed002e
--- /dev/null
+++ b/dev/tests/integration/testsuite/Magento/Catalog/_files/product_virtual_out_of_stock.php
@@ -0,0 +1,20 @@
+create(\Magento\Catalog\Model\Product::class);
+$product->setTypeId(\Magento\Catalog\Model\Product\Type::TYPE_VIRTUAL)
+ ->setId(31)
+ ->setAttributeSetId(4)
+ ->setWebsiteIds([1])
+ ->setName('Virtual Product Out')
+ ->setSku('virtual-product-out')
+ ->setPrice(10)
+ ->setTaxClassId(0)
+ ->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
+ ->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
+ ->setStockData(['is_in_stock' => 0])
+ ->save();
diff --git a/dev/tests/integration/testsuite/Magento/Catalog/_files/product_virtual_out_of_stock_rollback.php b/dev/tests/integration/testsuite/Magento/Catalog/_files/product_virtual_out_of_stock_rollback.php
new file mode 100644
index 0000000000000..8055ca4a25569
--- /dev/null
+++ b/dev/tests/integration/testsuite/Magento/Catalog/_files/product_virtual_out_of_stock_rollback.php
@@ -0,0 +1,26 @@
+get(\Magento\Framework\Registry::class);
+
+$registry->unregister('isSecureArea');
+$registry->register('isSecureArea', true);
+
+/** @var \Magento\Catalog\Api\ProductRepositoryInterface $productRepository */
+$productRepository = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
+ ->create(\Magento\Catalog\Api\ProductRepositoryInterface::class);
+
+try {
+ $product = $productRepository->get('virtual-product-out', false, null, true);
+ $productRepository->delete($product);
+} catch (\Magento\Framework\Exception\NoSuchEntityException $exception) {
+ //Product already removed
+}
+
+$registry->unregister('isSecureArea');
+$registry->register('isSecureArea', false);
diff --git a/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php b/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php
index dcf4565873ea5..554a20d8a18a7 100644
--- a/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php
+++ b/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php
@@ -5,8 +5,19 @@
*/
namespace Magento\GroupedProduct\Model\Product\Type;
+use Magento\Catalog\Api\ProductRepositoryInterface;
+use Magento\Catalog\Model\Product;
+use Magento\CatalogInventory\Model\Configuration;
+use Magento\Framework\App\Config\ReinitableConfigInterface;
+use Magento\Framework\App\Config\Value;
+
class GroupedTest extends \PHPUnit\Framework\TestCase
{
+ /**
+ * @var ReinitableConfigInterface
+ */
+ private $reinitableConfig;
+
/**
* @var \Magento\Framework\ObjectManagerInterface
*/
@@ -20,16 +31,21 @@ class GroupedTest extends \PHPUnit\Framework\TestCase
protected function setUp()
{
$this->objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
-
$this->_productType = $this->objectManager->get(\Magento\Catalog\Model\Product\Type::class);
+ $this->reinitableConfig = $this->objectManager->get(ReinitableConfigInterface::class);
+ }
+
+ protected function tearDown()
+ {
+ $this->dropConfigValue(Configuration::XML_PATH_SHOW_OUT_OF_STOCK);
}
public function testFactory()
{
$product = new \Magento\Framework\DataObject();
- $product->setTypeId(\Magento\GroupedProduct\Model\Product\Type\Grouped::TYPE_CODE);
+ $product->setTypeId(Grouped::TYPE_CODE);
$type = $this->_productType->factory($product);
- $this->assertInstanceOf(\Magento\GroupedProduct\Model\Product\Type\Grouped::class, $type);
+ $this->assertInstanceOf(Grouped::class, $type);
}
/**
@@ -38,12 +54,12 @@ public function testFactory()
*/
public function testGetAssociatedProducts()
{
- $productRepository = $this->objectManager->create(\Magento\Catalog\Api\ProductRepositoryInterface::class);
+ $productRepository = $this->objectManager->create(ProductRepositoryInterface::class);
- /** @var \Magento\Catalog\Model\Product $product */
+ /** @var Product $product */
$product = $productRepository->get('grouped-product');
$type = $product->getTypeInstance();
- $this->assertInstanceOf(\Magento\GroupedProduct\Model\Product\Type\Grouped::class, $type);
+ $this->assertInstanceOf(Grouped::class, $type);
$associatedProducts = $type->getAssociatedProducts($product);
$this->assertCount(2, $associatedProducts);
@@ -53,7 +69,7 @@ public function testGetAssociatedProducts()
}
/**
- * @param \Magento\Catalog\Model\Product $product
+ * @param Product $product
*/
private function assertProductInfo($product)
{
@@ -92,25 +108,25 @@ public function testPrepareProduct()
\Magento\Framework\DataObject::class,
['data' => ['value' => ['qty' => 2]]]
);
- /** @var \Magento\Catalog\Api\ProductRepositoryInterface $productRepository */
- $productRepository = $this->objectManager->get(\Magento\Catalog\Api\ProductRepositoryInterface::class);
+ /** @var ProductRepositoryInterface $productRepository */
+ $productRepository = $this->objectManager->get(ProductRepositoryInterface::class);
$product = $productRepository->get('grouped-product');
- /** @var \Magento\GroupedProduct\Model\Product\Type\Grouped $type */
- $type = $this->objectManager->get(\Magento\GroupedProduct\Model\Product\Type\Grouped::class);
+ /** @var Grouped $type */
+ $type = $this->objectManager->get(Grouped::class);
$processModes = [
- \Magento\GroupedProduct\Model\Product\Type\Grouped::PROCESS_MODE_FULL,
- \Magento\GroupedProduct\Model\Product\Type\Grouped::PROCESS_MODE_LITE
+ Grouped::PROCESS_MODE_FULL,
+ Grouped::PROCESS_MODE_LITE
];
$expectedData = [
- \Magento\GroupedProduct\Model\Product\Type\Grouped::PROCESS_MODE_FULL => [
+ Grouped::PROCESS_MODE_FULL => [
1 => '{"super_product_config":{"product_type":"grouped","product_id":"'
. $product->getId() . '"}}',
21 => '{"super_product_config":{"product_type":"grouped","product_id":"'
. $product->getId() . '"}}',
],
- \Magento\GroupedProduct\Model\Product\Type\Grouped::PROCESS_MODE_LITE => [
+ Grouped::PROCESS_MODE_LITE => [
$product->getId() => '{"value":{"qty":2}}',
]
];
@@ -127,4 +143,172 @@ public function testPrepareProduct()
}
}
}
+
+ /**
+ * Test adding grouped product to cart then one of subproducts is out of stock.
+ *
+ * @magentoDataFixture Magento/GroupedProduct/_files/product_grouped_with_out_of_stock.php
+ * @magentoAppArea frontend
+ * @magentoAppIsolation enabled
+ * @magentoDbIsolation disabled
+ * @dataProvider outOfStockSubProductDataProvider
+ * @param bool $outOfStockShown
+ * @param array $data
+ * @param array $expected
+ */
+ public function testOutOfStockSubProduct(bool $outOfStockShown, array $data, array $expected)
+ {
+ $this->changeConfigValue(Configuration::XML_PATH_SHOW_OUT_OF_STOCK, $outOfStockShown);
+ $buyRequest = new \Magento\Framework\DataObject($data);
+ $productRepository = $this->objectManager->create(ProductRepositoryInterface::class);
+ /** @var Product $product */
+ $product = $productRepository->get('grouped-product');
+ /** @var Grouped $groupedProduct */
+ $groupedProduct = $this->objectManager->get(Grouped::class);
+ $actual = $groupedProduct->prepareForCartAdvanced($buyRequest, $product, Grouped::PROCESS_MODE_FULL);
+ self::assertEquals(
+ count($expected),
+ count($actual)
+ );
+ /** @var array $element */
+ foreach ($expected as $number => $element) {
+ foreach ($element as $key => $value) {
+ self::assertEquals(
+ $value,
+ $actual[$number]->getData($key),
+ "Failed asserting that value $key matches expected"
+ );
+ }
+ }
+
+ }
+
+ /**
+ * Data provider for testOutOfStockSubProduct.
+ *
+ * @return array
+ */
+ public function outOfStockSubProductDataProvider()
+ {
+ return [
+ 'Out of stock product are shown #1' => [
+ true,
+ [
+ 'product' => 3,
+ 'qty' => 1,
+ 'super_group' => [
+ 1 => 4,
+ 21 => 5
+ ],
+ ],
+ [
+ [
+ 'sku' => 'virtual-product',
+ 'cart_qty' => 5
+ ],
+ [
+ 'sku' => 'simple',
+ 'cart_qty' => 4
+ ],
+ ]
+ ],
+ 'Out of stock product are shown #2' => [
+ true,
+ [
+ 'product' => 3,
+ 'qty' => 1,
+ 'super_group' => [
+ 1 => 0,
+ ],
+ ],
+ [
+ [
+ 'sku' => 'virtual-product',
+ 'cart_qty' => 2 // This is a default quantity.
+ ],
+ ]
+ ],
+ 'Out of stock product are hidden #1' => [
+ false,
+ [
+ 'product' => 3,
+ 'qty' => 1,
+ 'super_group' => [
+ 1 => 4,
+ 21 => 5
+ ],
+ ],
+ [
+ [
+ 'sku' => 'virtual-product',
+ 'cart_qty' => 5
+ ],
+ [
+ 'sku' => 'simple',
+ 'cart_qty' => 4
+ ],
+ ]
+ ],
+ 'Out of stock product are hidden #2' => [
+ false,
+ [
+ 'product' => 3,
+ 'qty' => 1,
+ 'super_group' => [
+ 1 => 0,
+ ],
+ ],
+ [
+ [
+ 'sku' => 'virtual-product',
+ 'cart_qty' => 2 // This is a default quantity.
+ ],
+ ]
+ ],
+ ];
+ }
+
+ /**
+ * Write config value to database.
+ *
+ * @param string $path
+ * @param string $value
+ * @param string $scope
+ * @param int $scopeId
+ */
+ private function changeConfigValue(string $path, string $value, string $scope = 'default', int $scopeId = 0)
+ {
+ $configValue = $this->objectManager->create(Value::class);
+ $configValue->setPath($path)
+ ->setValue($value)
+ ->setScope($scope)
+ ->setScopeId($scopeId)
+ ->save();
+ $this->reinitConfig();
+ }
+
+ /**
+ * Delete config value from database.
+ *
+ * @param string $path
+ */
+ private function dropConfigValue(string $path)
+ {
+ $configValue = $this->objectManager->create(Value::class);
+ try {
+ $configValue->load($path, 'path');
+ $configValue->delete();
+ } catch (\Magento\Framework\Exception\NoSuchEntityException $e) {
+ // do nothing
+ }
+ $this->reinitConfig();
+ }
+
+ /**
+ * Reinit config.
+ */
+ private function reinitConfig()
+ {
+ $this->reinitableConfig->reinit();
+ }
}
diff --git a/dev/tests/integration/testsuite/Magento/GroupedProduct/_files/product_grouped_with_out_of_stock.php b/dev/tests/integration/testsuite/Magento/GroupedProduct/_files/product_grouped_with_out_of_stock.php
new file mode 100644
index 0000000000000..b9f9046c4244c
--- /dev/null
+++ b/dev/tests/integration/testsuite/Magento/GroupedProduct/_files/product_grouped_with_out_of_stock.php
@@ -0,0 +1,75 @@
+\get(\Magento\Catalog\Api\ProductRepositoryInterface::class);
+
+/** @var $product \Magento\Catalog\Model\Product */
+$product = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Catalog\Model\Product::class);
+$product->isObjectNew(true);
+$product->setTypeId(
+ \Magento\GroupedProduct\Model\Product\Type\Grouped::TYPE_CODE
+)->setAttributeSetId(
+ 4
+)->setWebsiteIds(
+ [1]
+)->setName(
+ 'Grouped Product'
+)->setSku(
+ 'grouped-product'
+)->setPrice(
+ 100
+)->setTaxClassId(
+ 0
+)->setVisibility(
+ \Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH
+)->setStatus(
+ \Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED
+);
+
+$newLinks = [];
+$productLinkFactory = $objectManager->get(\Magento\Catalog\Api\Data\ProductLinkInterfaceFactory::class);
+
+/** @var \Magento\Catalog\Api\Data\ProductLinkInterface $productLink */
+$productLink = $productLinkFactory->create();
+$linkedProduct = $productRepository->getById(1);
+$productLink->setSku($product->getSku())
+ ->setLinkType('associated')
+ ->setLinkedProductSku($linkedProduct->getSku())
+ ->setLinkedProductType($linkedProduct->getTypeId())
+ ->setPosition(1)
+ ->getExtensionAttributes()
+ ->setQty(1);
+$newLinks[] = $productLink;
+
+$subProductsSkus = ['virtual-product', 'virtual-product-out'];
+foreach ($subProductsSkus as $sku) {
+ /** @var \Magento\Catalog\Api\Data\ProductLinkInterface $productLink */
+ $productLink = $productLinkFactory->create();
+ $linkedProduct = $productRepository->get($sku);
+ $productLink->setSku($product->getSku())
+ ->setLinkType('associated')
+ ->setLinkedProductSku($sku)
+ ->setLinkedProductType($linkedProduct->getTypeId())
+ ->getExtensionAttributes()
+ ->setQty(2);
+ $newLinks[] = $productLink;
+}
+$product->setProductLinks($newLinks);
+$product->save();
+
+/** @var \Magento\Catalog\Api\CategoryLinkManagementInterface $categoryLinkManagement */
+$categoryLinkManagement = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
+ ->create(\Magento\Catalog\Api\CategoryLinkManagementInterface::class);
+
+$categoryLinkManagement->assignProductToCategories(
+ $product->getSku(),
+ [2]
+);
diff --git a/dev/tests/integration/testsuite/Magento/GroupedProduct/_files/product_grouped_with_out_of_stock_rollback.php b/dev/tests/integration/testsuite/Magento/GroupedProduct/_files/product_grouped_with_out_of_stock_rollback.php
new file mode 100644
index 0000000000000..48e7d495f8985
--- /dev/null
+++ b/dev/tests/integration/testsuite/Magento/GroupedProduct/_files/product_grouped_with_out_of_stock_rollback.php
@@ -0,0 +1,10 @@
+\
Date: Fri, 5 Jan 2018 18:40:48 +0200
Subject: [PATCH 002/240] magento/magento2#12970: Can't add grouped product,
with out of stock sub product, to cart.
---
.../Magento/GroupedProduct/Model/Product/Type/GroupedTest.php | 1 -
1 file changed, 1 deletion(-)
diff --git a/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php b/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php
index 554a20d8a18a7..cd45cb816ffbc 100644
--- a/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php
+++ b/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php
@@ -180,7 +180,6 @@ public function testOutOfStockSubProduct(bool $outOfStockShown, array $data, arr
);
}
}
-
}
/**
From da05e921b80ac0766b3965d1e693e7da742abb72 Mon Sep 17 00:00:00 2001
From: Pavel Bystritsky
Date: Tue, 9 Jan 2018 14:19:44 +0200
Subject: [PATCH 003/240] magento/magento2#12970: Can't add grouped product,
with out of stock sub product, to cart.
---
.../Magento/GroupedProduct/Model/Product/Type/GroupedTest.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php b/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php
index cd45cb816ffbc..e177f77378985 100644
--- a/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php
+++ b/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php
@@ -145,7 +145,7 @@ public function testPrepareProduct()
}
/**
- * Test adding grouped product to cart then one of subproducts is out of stock.
+ * Test adding grouped product to cart when one of subproducts is out of stock.
*
* @magentoDataFixture Magento/GroupedProduct/_files/product_grouped_with_out_of_stock.php
* @magentoAppArea frontend
From 40600b9aea44981db11b8094fd9b78ba5a91c904 Mon Sep 17 00:00:00 2001
From: Pavel Bystritsky
Date: Tue, 9 Jan 2018 14:22:48 +0200
Subject: [PATCH 004/240] magento/magento2#12970: Can't add grouped product,
with out of stock sub product, to cart.
---
.../Model/Product/Type/GroupedTest.php | 22 +++++++++----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php b/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php
index e177f77378985..12221498eba4d 100644
--- a/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php
+++ b/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php
@@ -197,7 +197,7 @@ public function outOfStockSubProductDataProvider()
'qty' => 1,
'super_group' => [
1 => 4,
- 21 => 5
+ 21 => 5,
],
],
[
@@ -207,9 +207,9 @@ public function outOfStockSubProductDataProvider()
],
[
'sku' => 'simple',
- 'cart_qty' => 4
+ 'cart_qty' => 4,
],
- ]
+ ],
],
'Out of stock product are shown #2' => [
true,
@@ -223,9 +223,9 @@ public function outOfStockSubProductDataProvider()
[
[
'sku' => 'virtual-product',
- 'cart_qty' => 2 // This is a default quantity.
+ 'cart_qty' => 2, // This is a default quantity.
],
- ]
+ ],
],
'Out of stock product are hidden #1' => [
false,
@@ -234,19 +234,19 @@ public function outOfStockSubProductDataProvider()
'qty' => 1,
'super_group' => [
1 => 4,
- 21 => 5
+ 21 => 5,
],
],
[
[
'sku' => 'virtual-product',
- 'cart_qty' => 5
+ 'cart_qty' => 5,
],
[
'sku' => 'simple',
- 'cart_qty' => 4
+ 'cart_qty' => 4,
],
- ]
+ ],
],
'Out of stock product are hidden #2' => [
false,
@@ -260,9 +260,9 @@ public function outOfStockSubProductDataProvider()
[
[
'sku' => 'virtual-product',
- 'cart_qty' => 2 // This is a default quantity.
+ 'cart_qty' => 2, // This is a default quantity.
],
- ]
+ ],
],
];
}
From 63c7fc9b795d9ad284f546b80f8ae6a0c64b46f6 Mon Sep 17 00:00:00 2001
From: Pavel Bystritsky
Date: Tue, 9 Jan 2018 14:24:38 +0200
Subject: [PATCH 005/240] magento/magento2#12970: Can't add grouped product,
with out of stock sub product, to cart.
---
.../Magento/GroupedProduct/Model/Product/Type/GroupedTest.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php b/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php
index 12221498eba4d..475e3dcfab33f 100644
--- a/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php
+++ b/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php
@@ -203,7 +203,7 @@ public function outOfStockSubProductDataProvider()
[
[
'sku' => 'virtual-product',
- 'cart_qty' => 5
+ 'cart_qty' => 5,
],
[
'sku' => 'simple',
From 26b6a27ca619468f33165b4481bcc4bce9a56f95 Mon Sep 17 00:00:00 2001
From: Pavel Bystritsky
Date: Mon, 2 Apr 2018 11:41:39 +0300
Subject: [PATCH 006/240] magento/magento2#12970: Can't add grouped product,
with out of stock sub product, to cart.
---
.../Magento/GroupedProduct/Model/Product/Type/GroupedTest.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php b/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php
index 475e3dcfab33f..7e1dc4246e3fb 100644
--- a/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php
+++ b/dev/tests/integration/testsuite/Magento/GroupedProduct/Model/Product/Type/GroupedTest.php
@@ -150,7 +150,7 @@ public function testPrepareProduct()
* @magentoDataFixture Magento/GroupedProduct/_files/product_grouped_with_out_of_stock.php
* @magentoAppArea frontend
* @magentoAppIsolation enabled
- * @magentoDbIsolation disabled
+ * @magentoDbIsolation enabled
* @dataProvider outOfStockSubProductDataProvider
* @param bool $outOfStockShown
* @param array $data
From 274fee981c33ee22b296f99e1ca6cc009d7abaa2 Mon Sep 17 00:00:00 2001
From: Sunil Patel
Date: Sat, 19 May 2018 15:50:34 +0530
Subject: [PATCH 007/240] 15259 : Unable to disable without providing Industry
value
---
app/code/Magento/Analytics/etc/adminhtml/system.xml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/app/code/Magento/Analytics/etc/adminhtml/system.xml b/app/code/Magento/Analytics/etc/adminhtml/system.xml
index 889517e629e04..5d80917fc4daa 100644
--- a/app/code/Magento/Analytics/etc/adminhtml/system.xml
+++ b/app/code/Magento/Analytics/etc/adminhtml/system.xml
@@ -36,6 +36,9 @@
Magento\Analytics\Model\Config\Source\Vertical
Magento\Analytics\Model\Config\Backend\Vertical
Magento\Analytics\Block\Adminhtml\System\Config\Vertical
+
+ 1
+