Skip to content

Commit 4071459

Browse files
MC-22078: CreateCustomOptionsTest is failing in presence of B2B
1 parent f2eaa1d commit 4071459

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
* Testing option types: "Area", "File", "Drop-down", "Radio-Buttons",
2525
* "Checkbox", "Multiple Select", "Date", "Date & Time" and "Time".
2626
*
27-
* @magentoAppArea adminhtml
2827
* @magentoAppIsolation enabled
2928
* @magentoDbIsolation enabled
3029
*/
@@ -70,11 +69,11 @@ class CreateCustomOptionsTest extends TestCase
7069
protected function setUp()
7170
{
7271
$this->objectManager = Bootstrap::getObjectManager();
73-
$this->productRepository = $this->objectManager->create(ProductRepositoryInterface::class);
74-
$this->optionRepository = $this->objectManager->create(ProductCustomOptionRepositoryInterface::class);
75-
$this->customOptionFactory = $this->objectManager->create(ProductCustomOptionInterfaceFactory::class);
72+
$this->productRepository = $this->objectManager->get(ProductRepositoryInterface::class);
73+
$this->optionRepository = $this->objectManager->get(ProductCustomOptionRepositoryInterface::class);
74+
$this->customOptionFactory = $this->objectManager->get(ProductCustomOptionInterfaceFactory::class);
7675
$this->customOptionValueFactory = $this->objectManager
77-
->create(ProductCustomOptionValuesInterfaceFactory::class);
76+
->get(ProductCustomOptionValuesInterfaceFactory::class);
7877
$this->storeManager = $this->objectManager->get(StoreManagerInterface::class);
7978
}
8079

@@ -83,7 +82,8 @@ protected function setUp()
8382
*
8483
* @magentoDataFixture Magento/Catalog/_files/product_with_options.php
8584
* @magentoDataFixture Magento/Store/_files/core_second_third_fixturestore.php
86-
*
85+
* @magentoAppArea adminhtml
86+
* @magentoAppIsolation disabled
8787
* @magentoConfigFixture default_store catalog/price/scope 1
8888
* @magentoConfigFixture secondstore_store catalog/price/scope 1
8989
*/

0 commit comments

Comments
 (0)