public function TestSubContext::restoreConfig in Panopoly 7
Same name and namespace in other branches
- 8.2 modules/panopoly/panopoly_test/behat/steps/panopoly_test.behat.inc \TestSubContext::restoreConfig()
Restore saved preview configurations or other variables.
@AfterScenario @api
File
- modules/
panopoly/ panopoly_test/ behat/ steps/ panopoly_test.behat.inc, line 113 - Provide Behat step-definitions for generic Panopoly tests.
Class
Code
public function restoreConfig() {
if (count($this->configVariables) > 0) {
foreach ($this->configVariables as $key => $value) {
if ($value === 'not set') {
variable_del($key);
}
else {
variable_set($key, $value);
}
unset($this->configVariables[$key]);
}
}
}