You are here

public function TestSubContext::saveConfig in Panopoly 7

Same name and namespace in other branches
  1. 8.2 modules/panopoly/panopoly_test/behat/steps/panopoly_test.behat.inc \TestSubContext::saveConfig()

Save existing preview configurations.

@BeforeScenario @api

File

modules/panopoly/panopoly_test/behat/steps/panopoly_test.behat.inc, line 101
Provide Behat step-definitions for generic Panopoly tests.

Class

TestSubContext

Code

public function saveConfig() {
  $this->configVariables['panopoly_magic_live_preview'] = variable_get('panopoly_magic_live_preview', 'not set');
  $this->configVariables['panopoly_magic_pane_add_preview'] = variable_get('panopoly_magic_pane_add_preview', 'not set');
  variable_set('panopoly_magic_live_preview', 0);
  variable_set('panopoly_magic_pane_add_preview', PANOPOLY_ADD_PREVIEW_SINGLE);

  // 3.
}