Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
customer_non_default_website_id_rollback.php
Go to the documentation of this file.
1 <?php
6 include __DIR__ . '/customer_rollback.php';
7 
10 $registry->unregister('isSecureArea');
11 $registry->register('isSecureArea', true);
12 
15 $website->load('newwebsite', 'code');
16 if ($website->getId()) {
17  $website->delete();
18 }
19 
20 $registry->unregister('isSecureArea');
21 $registry->register('isSecureArea', false);
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition: _bootstrap.php:60