|
25 | 25 | * Testing option types: "Area", "File", "Drop-down", "Radio-Buttons", |
26 | 26 | * "Checkbox", "Multiple Select", "Date", "Date & Time" and "Time". |
27 | 27 | * |
28 | | - * @magentoAppArea adminhtml |
29 | | - * @magentoAppIsolation enabled |
30 | 28 | * @magentoDbIsolation enabled |
31 | 29 | */ |
32 | 30 | class UpdateCustomOptionsTest extends TestCase |
@@ -72,11 +70,11 @@ class UpdateCustomOptionsTest extends TestCase |
72 | 70 | protected function setUp() |
73 | 71 | { |
74 | 72 | $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); |
78 | 76 | $this->customOptionValueFactory = $this->objectManager |
79 | | - ->create(ProductCustomOptionValuesInterfaceFactory::class); |
| 77 | + ->get(ProductCustomOptionValuesInterfaceFactory::class); |
80 | 78 | $this->storeManager = $this->objectManager->get(StoreManagerInterface::class); |
81 | 79 | $this->currentStoreId = $this->storeManager->getStore()->getId(); |
82 | 80 | $adminStoreId = $this->storeManager->getStore('admin')->getId(); |
|
0 commit comments