13 $registry->register(
'isSecureArea',
true);
18 foreach ([
'simple1',
'simple2',
'simple3'] as $sku) {
22 }
catch (\
Magento\Framework\Exception\NoSuchEntityException $exception) {
26 foreach ([
'simple_31',
'simple_32',
'configurable',
'simple_41',
'simple_42',
'configurable_12345'] as $sku) {
31 $stockStatus->load(
$product->getEntityId(),
'product_id');
32 $stockStatus->delete();
35 }
catch (\
Magento\Framework\Exception\NoSuchEntityException $e) {
40 require
__DIR__ .
'/configurable_attribute_rollback.php';
43 $registry->register(
'isSecureArea',
false);
defined('TESTS_BP')||define('TESTS_BP' __DIR__
static getObjectManager()