Specialized refreshVariables().
Overrides WebTestBase::refreshVariables
protected function refreshVariables() {
// Refresh the variables only if the site was already upgraded.
if ($this->upgradedSite) {
global $conf;
cache('bootstrap')
->delete('variables');
$conf = variable_initialize();
$container = drupal_container();
if ($container
->has('config.factory')) {
$container
->get('config.factory')
->reset();
}
}
}