Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
product_custom_url_key_rollback.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
10 
11 $objectManager = Bootstrap::getObjectManager();
12 
14 $registry = $objectManager->get(Registry::class);
15 $registry->unregister('isSecureArea');
16 $registry->register('isSecureArea', true);
17 
18 require __DIR__ . '/../_files/product_with_category_rollback.php';
19 
20 $registry->unregister('isSecureArea');
21 $registry->register('isSecureArea', false);
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition: _bootstrap.php:60