init
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
declare(strict_types = 1);
|
||||
|
||||
use Magento\Framework\App\Config\ConfigResource\ConfigInterface;
|
||||
use Magento\Framework\App\Config\ReinitableConfigInterface;
|
||||
use Magento\TestFramework\Helper\Bootstrap;
|
||||
|
||||
$objectManager = Bootstrap::getObjectManager();
|
||||
/** @var ConfigInterface $config */
|
||||
$config = $objectManager->get(ConfigInterface::class);
|
||||
$config->saveConfig('general/country/allow', 'FR');
|
||||
$objectManager->get(ReinitableConfigInterface::class)->reinit();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
declare(strict_types = 1);
|
||||
|
||||
use Magento\Framework\App\Config\ConfigResource\ConfigInterface;
|
||||
use Magento\Framework\App\Config\ReinitableConfigInterface;
|
||||
use Magento\TestFramework\Helper\Bootstrap;
|
||||
|
||||
$objectManager = Bootstrap::getObjectManager();
|
||||
/** @var ConfigInterface $config */
|
||||
$config = $objectManager->get(ConfigInterface::class);
|
||||
$config->deleteConfig('general/country/allow');
|
||||
$objectManager->get(ReinitableConfigInterface::class)->reinit();
|
||||
Reference in New Issue
Block a user