Skip to content

Commit 62d1456

Browse files
committed
Merge remote-tracking branch 'mavericks/MTA-3791-PR' into mavericks-PR
2 parents 8e0f2a2 + 797f3af commit 62d1456

File tree

3 files changed

+40
-7
lines changed

3 files changed

+40
-7
lines changed

dev/tests/functional/lib/Magento/Mtf/App/State/State1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class State1 extends AbstractState
2525
*
2626
* @var string
2727
*/
28-
protected $config ='admin_session_lifetime_1_hour, wysiwyg_disabled, admin_account_sharing_enable';
28+
protected $config ='admin_session_lifetime_1_hour, wysiwyg_disabled, admin_account_sharing_enable, log_to_file';
2929

3030
/**
3131
* @construct

dev/tests/functional/tests/app/Magento/Backend/Test/Repository/ConfigData.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,15 @@
150150
</field>
151151
</dataset>
152152

153+
<dataset name="log_to_file">
154+
<field name="dev/debug/debug_logging" xsi:type="array">
155+
<item name="scope" xsi:type="string">default</item>
156+
<item name="scope_id" xsi:type="number">0</item>
157+
<item name="label" xsi:type="string">Yes</item>
158+
<item name="value" xsi:type="number">1</item>
159+
</field>
160+
</dataset>
161+
153162
<dataset name="enable_https_frontend_admin">
154163
<field name="web/secure/use_in_frontend" xsi:type="array">
155164
<item name="scope" xsi:type="string">default</item>
@@ -164,6 +173,21 @@
164173
<item name="value" xsi:type="number">1</item>
165174
</field>
166175
</dataset>
176+
177+
<dataset name="enable_https_frontend_admin_rollback">
178+
<field name="web/secure/use_in_frontend" xsi:type="array">
179+
<item name="scope" xsi:type="string">default</item>
180+
<item name="scope_id" xsi:type="number">0</item>
181+
<item name="label" xsi:type="string">No</item>
182+
<item name="value" xsi:type="number">0</item>
183+
</field>
184+
<field name="web/secure/use_in_adminhtml" xsi:type="array">
185+
<item name="scope" xsi:type="string">default</item>
186+
<item name="scope_id" xsi:type="number">0</item>
187+
<item name="label" xsi:type="string">No</item>
188+
<item name="value" xsi:type="number">0</item>
189+
</field>
190+
</dataset>
167191
<dataset name="enable_hsts">
168192
<field name="web/secure/enable_hsts" xsi:type="array">
169193
<item name="scope" xsi:type="string">default</item>

dev/tests/functional/tests/app/Magento/Config/Test/TestStep/SetupConfigurationStep.php

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
use Magento\Mtf\Fixture\FixtureFactory;
1010
use Magento\Mtf\TestStep\TestStepInterface;
11+
use Magento\Mtf\Util\Command\Cli\Cache;
1112
use Magento\PageCache\Test\Page\Adminhtml\AdminCache;
1213

1314
/**
@@ -50,19 +51,28 @@ class SetupConfigurationStep implements TestStepInterface
5051
*/
5152
protected $flushCache;
5253

54+
/**
55+
* Cli command to do operations with cache.
56+
*
57+
* @var Cache
58+
*/
59+
private $cache;
60+
5361
/**
5462
* Preparing step properties.
5563
*
5664
* @constructor
5765
* @param FixtureFactory $fixtureFactory
5866
* @param AdminCache $adminCache
67+
* @param Cache $cache
5968
* @param string $configData
6069
* @param bool $rollback
6170
* @param bool $flushCache
6271
*/
6372
public function __construct(
6473
FixtureFactory $fixtureFactory,
6574
AdminCache $adminCache,
75+
Cache $cache,
6676
$configData = null,
6777
$rollback = false,
6878
$flushCache = false
@@ -72,6 +82,7 @@ public function __construct(
7282
$this->configData = $configData;
7383
$this->rollback = $rollback;
7484
$this->flushCache = $flushCache;
85+
$this->cache = $cache;
7586
}
7687

7788
/**
@@ -95,13 +106,11 @@ public function run()
95106
$config->persist();
96107
$result[] = $config;
97108
}
109+
if ($this->flushCache) {
110+
$this->cache->flush();
111+
}
98112
}
99-
100-
if ($this->flushCache) {
101-
$this->adminCache->open();
102-
$this->adminCache->getActionsBlock()->flushMagentoCache();
103-
$this->adminCache->getMessagesBlock()->waitSuccessMessage();
104-
}
113+
105114

106115
return ['config' => $result];
107116
}

0 commit comments

Comments
 (0)