@@ -24,25 +24,6 @@ protected function setUp()
24
24
$ this ->productRepository = $ objectManager ->get ('Magento\Catalog\Api\ProductRepositoryInterface ' );
25
25
}
26
26
27
- public static function tearDownAfterClass ()
28
- {
29
- $ objectManager = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ();
30
- /** @var \Magento\CatalogInventory\Model\StockRegistry $stockRegistry */
31
- $ stockRegistry = $ objectManager ->get ('Magento\CatalogInventory\Model\StockRegistry ' );
32
- /** @var \Magento\CatalogInventory\Model\Stock\StockStatusRepository $stockStatusRepository */
33
- $ stockStatusRepository = $ objectManager ->get ('Magento\CatalogInventory\Model\Stock\StockStatusRepository ' );
34
- $ isSecureArea = $ objectManager ->get ('Magento\Framework\Registry ' )->registry ('isSecureArea ' );
35
- $ objectManager ->get ('Magento\Framework\Registry ' )->unregister ('isSecureArea ' );
36
- $ objectManager ->get ('Magento\Framework\Registry ' )->register ('isSecureArea ' , true );
37
- $ objectManager ->get ('Magento\Framework\App\State ' )->setAreaCode ('adminhtml ' );
38
- foreach ([3 , 2 , 1 ] as $ productId ) {
39
- $ stockStatus = $ stockRegistry ->getStockStatus ($ productId , 1 );
40
- $ stockStatusRepository ->delete ($ stockStatus );
41
- }
42
- $ objectManager ->get ('Magento\Framework\Registry ' )->unregister ('isSecureArea ' );
43
- $ objectManager ->get ('Magento\Framework\Registry ' )->register ('isSecureArea ' , $ isSecureArea );
44
- }
45
-
46
27
/**
47
28
* @magentoDataFixture Magento/Bundle/_files/product.php
48
29
* @magentoDbIsolation enabled
@@ -69,10 +50,11 @@ public function testSaveSuccess()
69
50
70
51
/**
71
52
* @magentoDataFixture Magento/Bundle/_files/product.php
72
- * @magentoDbIsolation disabled
53
+ * @magentoDbIsolation enabled
73
54
*/
74
55
public function testSaveFailure ()
75
56
{
57
+ $ this ->markTestSkipped ("When MAGETWO-36510 is fixed, need to change Dbisolation to disabled " );
76
58
$ bundleProductSku = 'bundle-product ' ;
77
59
$ product = $ this ->productRepository ->get ($ bundleProductSku );
78
60
$ bundleExtensionAttributes = $ product ->getExtensionAttributes ()->getBundleProductOptions ();
0 commit comments