function InstallerTestBase::refreshVariables

Same name in other branches
  1. 8.9.x core/modules/simpletest/src/InstallerTestBase.php \Drupal\simpletest\InstallerTestBase::refreshVariables()
  2. 8.9.x core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php \Drupal\FunctionalTests\Installer\InstallerTestBase::refreshVariables()
  3. 10 core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php \Drupal\FunctionalTests\Installer\InstallerTestBase::refreshVariables()
  4. 11.x core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php \Drupal\FunctionalTests\Installer\InstallerTestBase::refreshVariables()

FunctionalTestSetupTrait::refreshVariables() tries to operate on persistent storage, which is only available after the installer completed.

Overrides RefreshVariablesTrait::refreshVariables

File

core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php, line 291

Class

InstallerTestBase
Base class for testing the interactive installer.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function refreshVariables() {
    if ($this->isInstalled) {
        parent::refreshVariables();
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.