forked from magento/magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request magento#113 from magento-troll/Troll_S31
[Troll] Sprint 31
- Loading branch information
Showing
11 changed files
with
226 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
/** | ||
* Copyright © 2015 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
/** | ||
* Class ConfigsApplyFixture | ||
*/ | ||
class ConfigsApplyFixture extends \Magento\ToolkitFramework\Fixture | ||
{ | ||
/** | ||
* @var int | ||
*/ | ||
protected $priority = 150; | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function execute() | ||
{ | ||
$configs = \Magento\ToolkitFramework\Config::getInstance()->getValue('configs', array()); | ||
$this->application->resetObjectManager(); | ||
|
||
foreach ($configs['config'] as $config) { | ||
/** | ||
* @var \Magento\Framework\App\Config\Value $configData | ||
*/ | ||
$configData = $this->application->getObjectManager()->create('Magento\Framework\App\Config\Value'); | ||
$configData->setPath($config['path']) | ||
->setScope($config['scope']) | ||
->setScopeId($config['scopeId']) | ||
->setValue($config['value']) | ||
->save(); | ||
} | ||
$this->application->getObjectManager()->get('Magento\Framework\App\CacheInterface') | ||
->clean([\Magento\Framework\App\Config::CACHE_TAG]); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getActionTitle() | ||
{ | ||
return 'Config Changes'; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function introduceParamLabels() | ||
{ | ||
return []; | ||
} | ||
} | ||
|
||
return new ConfigsApplyFixture($this); |
54 changes: 0 additions & 54 deletions
54
dev/tools/performance-toolkit/fixtures/disable_form_key_usage.php
This file was deleted.
Oops, something went wrong.
54 changes: 0 additions & 54 deletions
54
dev/tools/performance-toolkit/fixtures/shipping_flatrate_enabled.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.