Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
fixture_store_with_catalogsearch_index_rollback.php
Go to the documentation of this file.
1 <?php
9 
10 $registry->unregister('isSecureArea');
11 $registry->register('isSecureArea', true);
12 
15 $storeCode = 'fixturestore';
16 $store->load($storeCode);
17 if ($store->getId()) {
18  $store->delete();
19 }
20 
21 $registry->unregister('isSecureArea');
22 $registry->register('isSecureArea', false);