24
24
* Testing option types: "Area", "File", "Drop-down", "Radio-Buttons",
25
25
* "Checkbox", "Multiple Select", "Date", "Date & Time" and "Time".
26
26
*
27
- * @magentoAppArea adminhtml
28
27
* @magentoAppIsolation enabled
29
28
* @magentoDbIsolation enabled
30
29
*/
@@ -70,11 +69,11 @@ class CreateCustomOptionsTest extends TestCase
70
69
protected function setUp ()
71
70
{
72
71
$ 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);
76
75
$ this ->customOptionValueFactory = $ this ->objectManager
77
- ->create (ProductCustomOptionValuesInterfaceFactory::class);
76
+ ->get (ProductCustomOptionValuesInterfaceFactory::class);
78
77
$ this ->storeManager = $ this ->objectManager ->get (StoreManagerInterface::class);
79
78
}
80
79
@@ -83,7 +82,8 @@ protected function setUp()
83
82
*
84
83
* @magentoDataFixture Magento/Catalog/_files/product_with_options.php
85
84
* @magentoDataFixture Magento/Store/_files/core_second_third_fixturestore.php
86
- *
85
+ * @magentoAppArea adminhtml
86
+ * @magentoAppIsolation disabled
87
87
* @magentoConfigFixture default_store catalog/price/scope 1
88
88
* @magentoConfigFixture secondstore_store catalog/price/scope 1
89
89
*/
0 commit comments