Skip to content

Commit 4563cd9

Browse files
committed
Merge branch 'MC-20668' into 2.3-develop-com-pr2
2 parents c4ed937 + 18799f3 commit 4563cd9

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/Product/Save/UpdateCustomOptionsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ protected function setUp()
4747
{
4848
parent::setUp();
4949

50-
$this->productRepository = $this->_objectManager->create(ProductRepositoryInterface::class);
51-
$this->optionRepository = $this->_objectManager->create(ProductCustomOptionRepositoryInterface::class);
52-
$this->optionRepositoryFactory = $this->_objectManager->create(ProductCustomOptionInterfaceFactory::class);
50+
$this->productRepository = $this->_objectManager->get(ProductRepositoryInterface::class);
51+
$this->optionRepository = $this->_objectManager->get(ProductCustomOptionRepositoryInterface::class);
52+
$this->optionRepositoryFactory = $this->_objectManager->get(ProductCustomOptionInterfaceFactory::class);
5353
}
5454

5555
/**

dev/tests/integration/testsuite/Magento/Catalog/Model/Product/UpdateCustomOptionsTest.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
* Testing option types: "Area", "File", "Drop-down", "Radio-Buttons",
2626
* "Checkbox", "Multiple Select", "Date", "Date & Time" and "Time".
2727
*
28-
* @magentoAppArea adminhtml
29-
* @magentoAppIsolation enabled
3028
* @magentoDbIsolation enabled
3129
*/
3230
class UpdateCustomOptionsTest extends TestCase
@@ -72,11 +70,11 @@ class UpdateCustomOptionsTest extends TestCase
7270
protected function setUp()
7371
{
7472
$this->objectManager = Bootstrap::getObjectManager();
75-
$this->productRepository = $this->objectManager->create(ProductRepositoryInterface::class);
76-
$this->optionRepository = $this->objectManager->create(ProductCustomOptionRepositoryInterface::class);
77-
$this->customOptionFactory = $this->objectManager->create(ProductCustomOptionInterfaceFactory::class);
73+
$this->productRepository = $this->objectManager->get(ProductRepositoryInterface::class);
74+
$this->optionRepository = $this->objectManager->get(ProductCustomOptionRepositoryInterface::class);
75+
$this->customOptionFactory = $this->objectManager->get(ProductCustomOptionInterfaceFactory::class);
7876
$this->customOptionValueFactory = $this->objectManager
79-
->create(ProductCustomOptionValuesInterfaceFactory::class);
77+
->get(ProductCustomOptionValuesInterfaceFactory::class);
8078
$this->storeManager = $this->objectManager->get(StoreManagerInterface::class);
8179
$this->currentStoreId = $this->storeManager->getStore()->getId();
8280
$adminStoreId = $this->storeManager->getStore('admin')->getId();

0 commit comments

Comments
 (0)