9 use Magento\Mtf\TestCase\Injectable;
10 use Magento\Mtf\Fixture\FixtureFactory;
11 use Magento\Backend\Test\Page\Adminhtml\SystemConfigEdit;
115 'web/secure/base_url' => [
116 'scope' =>
'default',
118 'value' => str_replace([
'http',
'index.php/'], [
'https',
''], $_ENV[
'app_frontend_url'])
125 $this->configurationAdminPage->open();
126 $this->configurationAdminPage->getForm()
127 ->getGroup(
'web',
'secure')
128 ->setValue(
'web',
'secure',
'use_in_adminhtml',
'Yes');
129 $this->configurationAdminPage->getPageActions()->save();
130 $_ENV[
'app_backend_url'] = str_replace(
'http',
'https', $_ENV[
'app_backend_url']);
132 $this->configurationAdminPage = $this->objectManager->create(
133 \
Magento\Backend\Test\Page\Adminhtml\SystemConfigEdit::class
136 $this->cache = $this->objectManager->create(\
Magento\
Mtf\Util\Command\Cli\Cache::class);
137 $this->cache->flush([
'config',
'full_page']);
139 $this->staticContent = $this->objectManager->create(\
Magento\
Mtf\Util\Command\Cli\StaticContent::class);
140 $this->staticContent->deploy();
150 $this->configurationAdminPage->open();
151 $this->configurationAdminPage->getForm()
152 ->getGroup(
'web',
'secure')
153 ->setValue(
'web',
'secure',
'use_in_adminhtml',
'No');
154 $this->configurationAdminPage->getPageActions()->save();
155 $this->cache->flush([
'config',
'full_page']);
156 $this->staticContent->deploy();