Skip to content

Commit 0a76e94

Browse files
author
Joan He
committed
MAGETWO-91529: Restricted admin user can remove product from other websites
- Fix integration test failures
1 parent 206059f commit 0a76e94

File tree

1 file changed

+3
-0
lines changed
  • dev/tests/integration/testsuite/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier

1 file changed

+3
-0
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/CategoriesTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
namespace Magento\Catalog\Ui\DataProvider\Product\Form\Modifier;
88

9+
use Magento\Catalog\Model\Product;
910
use Magento\TestFramework\Helper\CacheCleaner;
1011

1112
/**
@@ -29,6 +30,8 @@ protected function setUp()
2930
$store = $objectManager->create(\Magento\Store\Model\Store::class);
3031
$store->load('admin');
3132
$registry->register('current_store', $store);
33+
$product = $objectManager->create(Product::class);
34+
$registry->register('current_product', $product);
3235
$this->object = $objectManager->create(Categories::class);
3336
}
3437

0 commit comments

Comments
 (0)